fix ShortcutDialog to allow clearing the shortcut

BUG: 234793
REVIEW: 104336
icc-effect-5.14.5
Thomas Lübking 2012-03-18 17:29:14 +01:00
parent 218baa9dbe
commit ef71908c6a
1 changed files with 5 additions and 0 deletions

View File

@ -496,6 +496,11 @@ void ShortcutDialog::keySequenceChanged(const QKeySequence &seq)
if (_shortcut == seq)
return; // don't try to update the same
if (seq.isEmpty()) { // clear
_shortcut = seq;
return;
}
// Check if the key sequence is used currently
QString sc = seq.toString();
// NOTICE - seq.toString() & the entries in "conflicting" randomly get invalidated after the next call (if no sc has been set & conflicting isn't empty?!)