Skip to content

Commit

Permalink
(ckb) Fix key bindings sometimes duplicating themselves when they sho…
Browse files Browse the repository at this point in the history
…uldn't
  • Loading branch information
ccMSC committed Mar 4, 2015
1 parent 58a72a9 commit 925b1e9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/ckb/rebindwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,12 @@ void RebindWidget::setSelection(const QStringList& newSelection, bool applyPrevi
// Select nothing if any are unbound or different
foreach(const QString& key, selection){
QString keyAction = bind->action(key);
if(keyAction.isEmpty())
if(keyAction.isEmpty() || (hasAction && keyAction != action)){
hasAction = false;
break;
if(action.isEmpty()){
} else if(action.isEmpty()){
action = keyAction;
hasAction = true;
} else if(keyAction != action){
hasAction = false;
break;
}
}
}
Expand Down

0 comments on commit 925b1e9

Please sign in to comment.