Skip to content

Commit 111393e

Browse files
committedDec 7, 2015
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.
1 parent 6035d98 commit 111393e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/app/qgsshortcutsmanager.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ bool QgsShortcutsManager::registerAction( QAction* action, const QString& defaul
4747
QSettings settings;
4848
QString shortcut = settings.value( "/shortcuts/" + actionText, defaultShortcut ).toString();
4949

50-
if ( !shortcut.isEmpty() )
51-
action->setShortcut( shortcut );
50+
action->setShortcut( shortcut );
5251

5352
return true;
5453
}

0 commit comments

Comments
 (0)
Please sign in to comment.