diff --git a/shortcuts_management/shortcuts_manager.cpp b/shortcuts_management/shortcuts_manager.cpp index 40e725de..bbde5df5 100644 --- a/shortcuts_management/shortcuts_manager.cpp +++ b/shortcuts_management/shortcuts_manager.cpp @@ -112,6 +112,9 @@ void ShortcutsManager::registerActions(const QList &a) bool ShortcutsManager::checkConflicts(const QKeySequence & shortcut, const QAction *dest) { + if(shortcut.isEmpty()) + return false; + foreach(QAction * action, actions) { if(action != dest) //if the same shortcut is setted there is no conflict