Skip to content
Permalink
Browse files

Merge pull request #2551 from SebDieBln/RestoreEmtpyShortcuts

Do not reapply default value to shortcuts that are set to "none" (fixes #7905)
  • Loading branch information
nyalldawson committed Dec 13, 2015
2 parents 7f674a4 + 111393e commit aedcf3a76b6690a167dbf62f82699f240d2aa63b
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/app/qgsshortcutsmanager.cpp
@@ -47,8 +47,7 @@ bool QgsShortcutsManager::registerAction( QAction* action, const QString& defaul
QSettings settings;
QString shortcut = settings.value( "/shortcuts/" + actionText, defaultShortcut ).toString();

if ( !shortcut.isEmpty() )
action->setShortcut( shortcut );
action->setShortcut( shortcut );

return true;
}

0 comments on commit aedcf3a

Please sign in to comment.
You can’t perform that action at this time.