Make it impossible to hide the toolbar by disallowing its context menu (fixes #51).
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Thu, 4 Jul 2013 20:43:29 +0000 (20:43 +0000)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Thu, 4 Jul 2013 20:43:29 +0000 (20:43 +0000)
src/gui/mainwindow.cpp

index 7f4608b..567942f 100644 (file)
@@ -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