summaryrefslogtreecommitdiff
path: root/src/resources/theme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/theme.cpp')
-rw-r--r--src/resources/theme.cpp4
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