]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/filebrowsebutton.py
More updates to the docview library modules and sample apps from the
[wxWidgets.git] / wxPython / wx / lib / filebrowsebutton.py
index c731be2b6eab740ed636350506ed4d4e6805c93d..ca3338f462ee0b82c4c6339decdefd2da5934d35 100644 (file)
@@ -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):