X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/141d782d567f92933f6fe868fff5bace77e8ecd2..333026dcb018a871bad32b0b3784104f6532b215:/src/msw/dirdlg.cpp diff --git a/src/msw/dirdlg.cpp b/src/msw/dirdlg.cpp index 018f4e1323..8c8591fd67 100644 --- a/src/msw/dirdlg.cpp +++ b/src/msw/dirdlg.cpp @@ -148,7 +148,7 @@ int wxDirDialog::ShowModal() // is also the only way to have a resizable dialog // // "new" style is only available in the version 5.0+ of comctl32.dll - const bool needNewDir = HasFlag(wxDD_NEW_DIR_BUTTON); + const bool needNewDir = !HasFlag(wxDD_DIR_MUST_EXIST); if ( (needNewDir || HasFlag(wxRESIZE_BORDER)) && (verComCtl32 >= 500) ) { if (needNewDir)