projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0100b5
)
Fix #590 by adding menu actions to main window also
author
Soeren Apel
<soeren@apelpie.net>
Sat, 27 Jun 2015 11:31:03 +0000
(13:31 +0200)
committer
Soeren Apel
<soeren@apelpie.net>
Sat, 27 Jun 2015 11:31:03 +0000
(13:31 +0200)
pv/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/pv/mainwindow.cpp
b/pv/mainwindow.cpp
index 797944b9bea2295a50b00d0d374e3b8ee6c0f186..3a775edde104d2500f00397730e63c8844de74d3 100644
(file)
--- 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);