Bug fix from Chad Netzer for when self.history is None

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-05-18 18:03:29 +00:00
parent c442fb9765
commit 2c3e35c2fc
2 changed files with 8 additions and 1 deletions

View 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):