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, 1 insertions, 3 deletions
diff --git a/src/resources/theme.cpp b/src/resources/theme.cpp
index 1db92feb..67cd6650 100644
--- a/src/resources/theme.cpp
+++ b/src/resources/theme.cpp
@@ -49,9 +49,7 @@ static void initDefaultThemePath()
ResourceManager *resman = ResourceManager::getInstance();
defaultThemePath = branding.getStringValue("guiThemePath");
- if (!defaultThemePath.empty() && resman->isDirectory(defaultThemePath))
- return;
- else
+ if (defaultThemePath.empty() || !resman->isDirectory(defaultThemePath))
defaultThemePath = "graphics/gui/";
}