From: Philipp Spitzer Date: Thu, 4 Jul 2013 20:43:29 +0000 (+0000) Subject: Make it impossible to hide the toolbar by disallowing its context menu (fixes #51). X-Git-Tag: 0.6.1~10 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/0584e12fde09fda2061d63d55b4c320c02115057 Make it impossible to hide the toolbar by disallowing its context menu (fixes #51). --- diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 7f4608b..567942f 100644 --- 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