Skip to content

Commit

Permalink
Fix build on OSX platform < 10.14 (#8348)
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa authored and 3nids committed Oct 26, 2018
1 parent 5f5edb6 commit 4295e0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/native/mac/qgsmacnative.mm
Expand Up @@ -121,5 +121,9 @@ - ( BOOL )userNotificationCenter:( NSUserNotificationCenter * )center shouldPres

bool QgsMacNative::hasDarkTheme()
{
return ( NSApp.effectiveAppearance.name != NSAppearanceNameAqua );
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
return ( NSApp.effectiveAppearance.name != NSAppearanceNameAqua );
#else
return false;
#endif
}

0 comments on commit 4295e0e

Please sign in to comment.