Theme: Fix nullptr access

On close this function gets called with a nullptr.
Amends c79f436e2a.

Change-Id: Ie7c1e8d91fc0ff26208c6f2bbc108f32d47f3608
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Stenger
2018-08-27 15:34:05 +02:00
parent b2c3e683cf
commit ff6d91e42b

View File

@@ -76,7 +76,7 @@ void setCreatorTheme(Theme *theme)
#ifdef Q_OS_MACOS #ifdef Q_OS_MACOS
// Match the native UI theme and palette with the creator // Match the native UI theme and palette with the creator
// theme by forcing light aqua for light creator themes. // theme by forcing light aqua for light creator themes.
if (!theme->flag(Theme::DarkUserInterface)) if (theme && !theme->flag(Theme::DarkUserInterface))
Internal::forceMacOSLightAquaApperance(); Internal::forceMacOSLightAquaApperance();
#endif #endif