Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 76296c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgsconfigureshortcutsdialog.cpp
Expand Up @@ -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();
}

Expand Down

0 comments on commit 76296c8

Please sign in to comment.