Fix build on OSX platform < 10.14 (#8348)

This commit is contained in:
Salvatore Larosa 2018-10-26 13:37:25 +02:00 committed by Denis Rouzaud
parent 5f5edb6b04
commit 4295e0e8e2

View File

@ -121,5 +121,9 @@ QgsNative::NotificationResult QgsMacNative::showDesktopNotification( const QStri
bool QgsMacNative::hasDarkTheme()
{
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
return ( NSApp.effectiveAppearance.name != NSAppearanceNameAqua );
#else
return false;
#endif
}