X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82184c0abfd1020218fd6ee1d0b2b914002b60a2..f11af0933155f94c7de5934738b0407c89e16e3f:/wxPython/wx/lib/filebrowsebutton.py 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,