Fix custom buttons

master
Guillaume Seguin 2012-09-06 09:02:47 +02:00
parent 8979ec888a
commit 77376bc17c
1 changed files with 1 additions and 1 deletions

View File

@ -963,7 +963,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
if wx.GetKeyState(wx.WXK_CONTROL) or wx.GetKeyState(wx.WXK_ALT):
return self.editbutton(e)
self.cur_button = e.GetEventObject().custombutton
self.onecmd(e.GetEventObject().properties[1])
self.onecmd(e.GetEventObject().properties.command)
self.cur_button = None
except:
print _("event object missing")