From 595714a44d9ad85878e3f2716c6e91a9b966471e Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Sun, 17 Jan 2010 17:42:31 +0100 Subject: [PATCH] Fixed empty menu on Mac Removed stop action when in full screen --- src/MainWindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index f9dd824..823301c 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -250,15 +250,16 @@ void MainWindow::createActions() { void MainWindow::createMenus() { QMap *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); -- 2.39.5