X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c442fb9765a8d2b9b4c9eadb6c75ad3d69b786da..2c3e35c2fcd636a3c9a280e19feb47dc5eb053ae:/wxPython/wx/lib/filebrowsebutton.py diff --git a/wxPython/wx/lib/filebrowsebutton.py b/wxPython/wx/lib/filebrowsebutton.py index c731be2b6e..ca3338f462 100644 --- a/wxPython/wx/lib/filebrowsebutton.py +++ b/wxPython/wx/lib/filebrowsebutton.py @@ -289,8 +289,10 @@ class FileBrowseButtonWithHistory( FileBrowseButton ): """Return the current history list""" if self.historyCallBack != None: return self.historyCallBack() - else: + elif self.history: return list( self.history ) + else: + return [] def OnSetFocus(self, event):