From: Flavio Tordini Date: Wed, 2 Sep 2009 23:17:46 +0000 (+0200) Subject: Hide menubar in compact mode (but not on the Mac) X-Git-Tag: 0.6~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d2283cdcf7f07f6c069d383fcac1e6d50144c8ab;p=minitube Hide menubar in compact mode (but not on the Mac) --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 89a1690..a7f19c3 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -570,6 +570,11 @@ void MainWindow::compactView(bool enable) { mainToolBar->setVisible(!enable); statusBar()->setVisible(!enable); + +#ifndef Q_WS_MAC + menuBar()->setVisible(!enable); +#endif + // ensure focus does not end up to the search box // as it would steal the Space shortcut toolbarSearch->setEnabled(!enable);