summaryrefslogtreecommitdiff
path: root/src/libs/utils/theme
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2018-08-27 15:34:05 +0200
committerChristian Stenger <christian.stenger@qt.io>2018-08-27 15:35:10 +0000
commitff6d91e42b3b578ca116dce61874e486c9c7a0fd (patch)
tree6c0328399ce013daa452c149e3522312a7fc8544 /src/libs/utils/theme
parentb2c3e683cffd41faf0c16175924ecaa1da68a781 (diff)
downloadqt-creator-ff6d91e42b3b578ca116dce61874e486c9c7a0fd.tar.gz
Theme: Fix nullptr access
On close this function gets called with a nullptr. Amends c79f436e2acb. Change-Id: Ie7c1e8d91fc0ff26208c6f2bbc108f32d47f3608 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/libs/utils/theme')
-rw-r--r--src/libs/utils/theme/theme.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/theme/theme.cpp b/src/libs/utils/theme/theme.cpp
index a64b804d07..645550261f 100644
--- a/src/libs/utils/theme/theme.cpp
+++ b/src/libs/utils/theme/theme.cpp
@@ -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