X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82184c0abfd1020218fd6ee1d0b2b914002b60a2..d1b736b7968ceea4233f3fceecdb01173f68a9a3:/wxPython/wx/lib/filebrowsebutton.py?ds=inline diff --git a/wxPython/wx/lib/filebrowsebutton.py b/wxPython/wx/lib/filebrowsebutton.py index e2e829da02..8031732077 100644 --- a/wxPython/wx/lib/filebrowsebutton.py +++ b/wxPython/wx/lib/filebrowsebutton.py @@ -351,8 +351,8 @@ class DirBrowseButton(FileBrowseButton): def OnBrowse(self, ev = None): style=0 - if self.newDirectory: - style|=wx.DD_NEW_DIR_BUTTON + if not self.newDirectory: + style |= wx.DD_DIR_MUST_EXIST dialog = self.dialogClass(self, message = self.dialogTitle,