diff options
Diffstat (limited to 'src/resources/theme.cpp')
-rw-r--r-- | src/resources/theme.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/theme.cpp b/src/resources/theme.cpp index 6633f1e0..0316b0bf 100644 --- a/src/resources/theme.cpp +++ b/src/resources/theme.cpp @@ -326,6 +326,7 @@ bool Theme::tryThemePath(std::string themePath) if (!themePath.empty()) { themePath = defaultThemePath + themePath; + if (PHYSFS_exists(themePath.c_str())) { mThemePath = themePath; @@ -338,6 +339,9 @@ bool Theme::tryThemePath(std::string themePath) void Theme::prepareThemePath() { + // Ensure the Theme object has been created + instance(); + // Try theme from settings if (!tryThemePath(config.getStringValue("theme"))) // Try theme from branding |