]> git.sur5r.net Git - minitube/commitdiff
Hide menubar in compact mode (but not on the Mac)
authorFlavio Tordini <flavio.tordini@gmail.com>
Wed, 2 Sep 2009 23:17:46 +0000 (01:17 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Wed, 2 Sep 2009 23:17:46 +0000 (01:17 +0200)
src/MainWindow.cpp

index 89a169024b82509817220e5c5c953e565b73a835..a7f19c34700b3418b0719ecbee91bd082ed8fd23 100755 (executable)
@@ -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);