diff --git a/lcl/interfaces/win32/win32wsdialogs.pp b/lcl/interfaces/win32/win32wsdialogs.pp index 53e0663732..b27e533b6a 100644 --- a/lcl/interfaces/win32/win32wsdialogs.pp +++ b/lcl/interfaces/win32/win32wsdialogs.pp @@ -1190,7 +1190,7 @@ begin ulFlags := BIF_RETURNONLYFSDIRS; if not (ofCreatePrompt in Options) then ulFlags := ulFlags + BIF_NONEWFOLDERBUTTON; - if not (ofOldStyleDialog in Options) then + if (ofEnableSizing in Options) then // better than flag BIF_USENEWUI, to hide editbox, it's not handy ulFlags := ulFlags + BIF_NEWDIALOGSTYLE; lpfn := @BrowseForFolderCallback;