]> git.sur5r.net Git - minitube/commitdiff
Fixed empty menu on Mac
authorFlavio Tordini <flavio.tordini@gmail.com>
Sun, 17 Jan 2010 16:42:31 +0000 (17:42 +0100)
committerFlavio Tordini <flavio.tordini@gmail.com>
Sun, 17 Jan 2010 16:42:31 +0000 (17:42 +0100)
Removed stop action when in full screen

src/MainWindow.cpp

index f9dd824ee64dab76dbd6cb8aced908ed4cfeb0e6..823301c7cc26bf4554d52bbcf01369e359cb6f8c 100755 (executable)
@@ -250,15 +250,16 @@ void MainWindow::createActions() {
 void MainWindow::createMenus() {
     
     QMap<QString, QMenu*> *menus = The::globalMenus();
-    
+
     fileMenu = menuBar()->addMenu(tr("&Application"));
     // menus->insert("file", fileMenu);
     // fileMenu->addAction(settingsAct);
     fileMenu->addAction(clearAct);
+#ifndef Q_WS_MAC
     fileMenu->addSeparator();
+#endif
     fileMenu->addAction(quitAct);
 
-    
     playlistMenu = menuBar()->addMenu(tr("&Playlist"));
     menus->insert("playlist", playlistMenu);
     playlistMenu->addAction(removeAct);
@@ -589,6 +590,7 @@ void MainWindow::fullscreen() {
     
     // Also no Youtube action since it opens a new window
     webPageAct->setVisible(m_fullscreen);
+    stopAct->setVisible(m_fullscreen);
     
     // Hide anything but the video
     mediaView->setPlaylistVisible(m_fullscreen);