Navigation Menu

Skip to content

Commit

Permalink
respect shortcuts set to none (fixes #7905)
Browse files Browse the repository at this point in the history
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 111393e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/qgsshortcutsmanager.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 111393e

Please sign in to comment.