Skip to content
Permalink
Browse files

respect shortcuts set to none (fixes #7905)

Shortcuts, that have been set to none by the user, are no longer restored to their default value on application startup.
  • Loading branch information
SebDieBln committed Dec 7, 2015
1 parent 6035d98 commit 111393e055f3d0ede8bfa1bd0b2275e0ff3d4ecc
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 111393e

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