OSDN Git Service

Fix the Select Files or Folders dialog. (#892)
authorJun Tajima <56220423+tjmprm77@users.noreply.github.com>
Thu, 22 Jul 2021 10:49:16 +0000 (19:49 +0900)
committerGitHub <noreply@github.com>
Thu, 22 Jul 2021 10:49:16 +0000 (19:49 +0900)
- 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.

Src/OpenView.cpp

index 1ce393f..ae232f9 100644 (file)
@@ -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];