Skip to content

Commit

Permalink
Fix: ModeModifier without timeout crashes Modeshift editor. Fixes #49
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Jul 1, 2016
1 parent 20f5a28 commit 446af9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scc/gui/modeshift_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ def _make_action(self):
action.holdaction = holdaction
elif holdaction:
action = HoldModifier(holdaction, normalaction)
else:
action = normalaction
action.timeout = self.builder.get_object("adjTime").get_value()
return action

Expand Down
2 changes: 2 additions & 0 deletions scc/modifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ def __init__(self, *stuff):
self.held_triggers = {}
self.order = []
self.old_gyro = None
self.timeout = DoubleclickModifier.DEAFAULT_TIMEOUT

button = None
for i in stuff:
if self.default is not None:
Expand Down

0 comments on commit 446af9a

Please sign in to comment.