From 0584e12fde09fda2061d63d55b4c320c02115057 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Thu, 4 Jul 2013 20:43:29 +0000 Subject: [PATCH] Make it impossible to hide the toolbar by disallowing its context menu (fixes #51). --- src/gui/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5