ToastFreeware
/
toast
/
confclerk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52556b1
)
Make it impossible to hide the toolbar by disallowing its context menu (fixes #51).
author
Philipp Spitzer
<philipp@spitzer.priv.at>
Thu, 4 Jul 2013 20:43:29 +0000
(20:43 +0000)
committer
Philipp Spitzer
<philipp@spitzer.priv.at>
Thu, 4 Jul 2013 20:43:29 +0000
(20:43 +0000)
src/gui/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/src/gui/mainwindow.cpp
b/src/gui/mainwindow.cpp
index 7f4608be73ba5660c2ade9b8e8336d5d2bd4d736..567942f1408c926d6cfa75f688fc1cb0bd6109b7 100644
(file)
--- a/
src/gui/mainwindow.cpp
+++ b/
src/gui/mainwindow.cpp
@@
-117,6
+117,9
@@
MainWindow::MainWindow(QWidget* parent): QMainWindow(parent) {
addAction(settingsAction);
addAction(quitAction);
+ // make it impossible to hide the toolbar by disallowing its context menu
+ toolBar->setContextMenuPolicy(Qt::PreventContextMenu);
+
// open conference
useConference(Conference::activeConference());
// optimization, see useConference() code