Commit 77376bc1 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix custom buttons

parent 8979ec88
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment