From: Jun Tajima <56220423+tjmprm77@users.noreply.github.com> Date: Thu, 22 Jul 2021 10:49:16 +0000 (+0900) Subject: Fix the Select Files or Folders dialog. (#892) X-Git-Tag: v2.16.14~31 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=64d594b069e48a452eeb3c86b9e486f5a90d5c1f;p=winmerge-jp%2Fwinmerge-jp.git Fix the Select Files or Folders dialog. (#892) - Fix an issue where plugin items are added to the "Save Project ..." drop down button when files (instead of directories) are specified in the "File or Folder" fields. --- diff --git a/Src/OpenView.cpp b/Src/OpenView.cpp index 1ce393faa..ae232f99b 100644 --- a/Src/OpenView.cpp +++ b/Src/OpenView.cpp @@ -832,7 +832,7 @@ void COpenView::DropDown(NMHDR* pNMHDR, LRESULT* pResult, UINT nID, UINT nPopupI CMenu* pPopup = menu.GetSubMenu(0); if (pPopup != nullptr) { - if (GetDlgItem(IDC_UNPACKER_COMBO)->IsWindowEnabled()) + if (nID == IDOK && GetDlgItem(IDC_UNPACKER_COMBO)->IsWindowEnabled()) { UpdateData(TRUE); String tmpPath[3];