We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b06a4d9 commit 823d57aCopy full SHA for 823d57a
src/framework/shortcuts/internal/shortcutsregister.cpp
@@ -291,7 +291,13 @@ Shortcut ShortcutsRegister::readShortcut(deprecated::XmlReader& reader) const
291
}
292
293
294
- shortcut.context = uiactionsRegister()->action(shortcut.action).scCtx;
+ auto action = uiactionsRegister()->action(shortcut.action);
295
+ if (!action.isValid()) {
296
+ LOGW() << "ignoring shortcut for invalid action: " << shortcut.action;
297
+ return Shortcut();
298
+ }
299
+
300
+ shortcut.context = action.scCtx;
301
302
return shortcut;
303
0 commit comments