Skip to content
Permalink
Browse files

Don't crash when some shortcuts can't be loaded

Fix #14528

(cherry picked from commit 76296c8)
  • Loading branch information
m-kuhn authored and jef-n committed Mar 23, 2016
1 parent 0c65f7f commit addcf3cbdac3ad73c3ecdbf9b141b444d3be2a3e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgsconfigureshortcutsdialog.cpp
@@ -224,7 +224,8 @@ void QgsConfigureShortcutsDialog::loadShortcuts()
actionName = child.attribute( "name" );
actionShortcut = child.attribute( "shortcut" );
action = QgsShortcutsManager::instance()->actionByName( actionName );
QgsShortcutsManager::instance()->setActionShortcut( action, actionShortcut );
if ( action )
QgsShortcutsManager::instance()->setActionShortcut( action, actionShortcut );
child = child.nextSiblingElement();
}

0 comments on commit addcf3c

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