From 961a97659ed5a3ba19b1d88c1068a9f8100f0365 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sun, 6 Mar 2011 18:26:06 +0000 Subject: [PATCH] Fix keyboard shortcuts on actions in the playlist menu that aren't added anywhere else. --- src/ui/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 7773c436d..63bcbd3af 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -492,6 +492,10 @@ MainWindow::MainWindow( ui_->action_shuffle->setShortcut(QKeySequence()); #endif + // We have to add the actions on the playlist menu to this QWidget otherwise + // their shortcut keys don't work + addActions(playlist_menu_->actions()); + connect(ui_->playlist, SIGNAL(UndoRedoActionsChanged(QAction*,QAction*)), SLOT(PlaylistUndoRedoChanged(QAction*,QAction*)));