1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-09 07:36:48 +02:00

Runtime check for lion instead of compile-time

This commit is contained in:
Leo Franchi
2011-10-20 14:31:41 -04:00
parent f24a25b370
commit 428dbe8f0e

View File

@@ -234,7 +234,12 @@ void Tomahawk::checkForUpdates() {
void Tomahawk::enableFullscreen() void Tomahawk::enableFullscreen()
{ {
#ifdef LION // We don't support anything below leopard, so if it's not [snow] leopard it must be lion
// Can't check for lion as Qt 4.7 doesn't have the enum val, not checking for Unknown as it will be lion
// on 4.8
if ( QSysInfo::MacintoshVersion != QSysInfo::MV_SNOWLEOPARD &&
QSysInfo::MacintoshVersion != QSysInfo::MV_LEOPARD )
{
qDebug() << "Enabling Lion Full-screeen"; qDebug() << "Enabling Lion Full-screeen";
// Can't include tomahawkapp.h in a .mm file, pulls in infosystem.h which uses // Can't include tomahawkapp.h in a .mm file, pulls in infosystem.h which uses
// the objc keyword 'id' // the objc keyword 'id'
@@ -247,6 +252,5 @@ void Tomahawk::enableFullscreen()
[nswindow setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary]; [nswindow setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
} }
} }
}
#endif
} }