forked from qt-creator/qt-creator
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:
@@ -76,7 +76,7 @@ void setCreatorTheme(Theme *theme)
|
||||
#ifdef Q_OS_MACOS
|
||||
// Match the native UI theme and palette with the creator
|
||||
// theme by forcing light aqua for light creator themes.
|
||||
if (!theme->flag(Theme::DarkUserInterface))
|
||||
if (theme && !theme->flag(Theme::DarkUserInterface))
|
||||
Internal::forceMacOSLightAquaApperance();
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user