From: Soeren Apel Date: Sat, 27 Jun 2015 11:31:03 +0000 (+0200) Subject: Fix #590 by adding menu actions to main window also X-Git-Tag: pulseview-0.3.0~187 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b4543062e0c62f893861cc41067f93e13a588ce8;p=pulseview.git Fix #590 by adding menu actions to main window also --- 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);