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:
parent
c442fb9765
commit
2c3e35c2fc
@ -84,7 +84,12 @@ wxSTC: Fixed CmdKeyAssign key bindings for Ctrl-Backspace.
|
||||
wxMSW: Fixed a bug in wx.TextCtrl where all the lines were being used
|
||||
to calculate the best size, instead of using a reasonable limit.
|
||||
|
||||
XRCed: Use wx.GetDefaultPyEncoding/wx.SetDefaultPyEncoding for
|
||||
changing active encoding. Fixed pasting siblings (Ctrl key pressed
|
||||
while pasting).
|
||||
|
||||
wx.lib.filebrowsebutton: Bug fix from Chad Netzer for when
|
||||
self.history is None.
|
||||
|
||||
|
||||
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user