diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-18 14:37:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-18 14:49:53 +0300 |
commit | be7d563ba1e0b20cfe397f2cf4da6f7e3df78d22 (patch) | |
tree | f26591cf82914d30853a1a0d556742c5ec801de8 /src/gui/theme.cpp | |
parent | 9f89a15fbcaf3f24f4c941b7061979e424d6384a (diff) | |
download | manaplus-be7d563ba1e0b20cfe397f2cf4da6f7e3df78d22.tar.gz manaplus-be7d563ba1e0b20cfe397f2cf4da6f7e3df78d22.tar.bz2 manaplus-be7d563ba1e0b20cfe397f2cf4da6f7e3df78d22.tar.xz manaplus-be7d563ba1e0b20cfe397f2cf4da6f7e3df78d22.zip |
Simplify reading values from config.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r-- | src/gui/theme.cpp | 8 |
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()) |