Commit 72b25078 authored by Luigi Toscano's avatar Luigi Toscano

Fix: set the shortcut only if available

The code should be cleaned by porting away from KShortcut, but
let's not crash on startup for now.
parent 5f2757ae
......@@ -994,7 +994,9 @@ QAction *PlaylistCollection::ActionHandler::createAction(const QString &text,
action = new QAction(QIcon::fromTheme(icon), text, actions());
actions()->addAction(name, action);
connect( action, SIGNAL(triggered(bool)), slot);
if (!shortcut.toList().isEmpty()) {
return action;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment