Skip to content
Permalink
Browse files

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

Fix #14528
  • Loading branch information
m-kuhn committed Mar 19, 2016
1 parent f3fe6be commit 76296c82e7e9225c6be3c00d48b4bf748ca5daa8
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 76296c8

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