From b4543062e0c62f893861cc41067f93e13a588ce8 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sat, 27 Jun 2015 13:31:03 +0200 Subject: [PATCH] Fix #590 by adding menu actions to main window also --- pv/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 797944b9..3a775edd 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -453,6 +453,10 @@ void MainWindow::setup_ui() setMenuBar(menu_bar); QMetaObject::connectSlotsByName(this); + // Also add all actions to the main window for always-enabled hotkeys + for (QAction* action : menu_bar->actions()) + this->addAction(action); + // Setup the toolbar main_bar_ = new toolbars::MainBar(session_, *this); -- 2.30.2