summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-18 14:37:36 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-18 14:49:53 +0300
commitbe7d563ba1e0b20cfe397f2cf4da6f7e3df78d22 (patch)
treef26591cf82914d30853a1a0d556742c5ec801de8 /src/gui/theme.cpp
parent9f89a15fbcaf3f24f4c941b7061979e424d6384a (diff)
downloadplus-be7d563ba1e0b20cfe397f2cf4da6f7e3df78d22.tar.gz
plus-be7d563ba1e0b20cfe397f2cf4da6f7e3df78d22.tar.bz2
plus-be7d563ba1e0b20cfe397f2cf4da6f7e3df78d22.tar.xz
plus-be7d563ba1e0b20cfe397f2cf4da6f7e3df78d22.zip
Simplify reading values from config.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index d13f04656..4abf76eb6 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -632,15 +632,11 @@ void Theme::prepareThemePath()
mThemeName = "";
// Try theme from settings
- if (tryThemePath(config.getValue("selectedSkin", "")))
- return;
-
- // Try theme from settings
- if (tryThemePath(config.getValue("theme", "")))
+ if (tryThemePath(config.getStringValue("theme")))
return;
// Try theme from branding
- if (tryThemePath(branding.getValue("theme", "")))
+ if (tryThemePath(branding.getStringValue("theme")))
return;
if (mThemePath.empty())