Skip to content
Snippets Groups Projects
Commit ce5b9ac4 authored by Paweł Goliński's avatar Paweł Goliński Committed by Hugo Beauzée-Luyssen
Browse files

Disable toolbar actionFullscreen on OS X >= LION


We shouldn't duplicate fullscreen action on
toolbar if OS X is >= LION, because it is a standard
action of all apps running on those versions.

Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 52614dfa
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@
#include <QUndoStack>
#include <QUrl>
#include <QNetworkProxy>
#include <QSysInfo>
#include "Main/Core.h"
#include "Project/Project.h"
#include "Library/Library.h"
......@@ -499,6 +500,13 @@ MainWindow::initToolbar()
connect( mouseActions, SIGNAL( triggered(QAction*) ),
this, SLOT( toolButtonClicked( QAction* ) ) );
m_ui.menuTools->addActions( mouseActions->actions() );
#if defined ( Q_OS_MAC )
// Use native fullscreen on OS X >= LION
if ( QSysInfo::macVersion() >= QSysInfo::MV_LION ) {
m_ui.actionFullscreen->setEnabled( false );
m_ui.actionFullscreen->setVisible( false );
}
#endif
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment