Skip to content

Commit

Permalink
Fix custom buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
iXce committed Sep 6, 2012
1 parent 8979ec8 commit 77376bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pronterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ def procbutton(self, e):
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")
Expand Down

0 comments on commit 77376bc

Please sign in to comment.