aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormontellese <montellese@xbmc.org>2013-10-22 13:26:47 +0200
committermontellese <montellese@xbmc.org>2013-10-22 13:29:48 +0200
commit1a9432c2037db36bc5263125543bf11800e5912a (patch)
tree72204de8b284983bb93f0a23f20cfb5fc0224ebb
parent1830ee90f01bc77ebcc39d022db5861e29990813 (diff)
we don't save the value of lookandfeel.skintheme/skincolor with the .xml extension (anymore)
-rw-r--r--xbmc/Application.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp
index e08edf0a97..a4970a928a 100644
--- a/xbmc/Application.cpp
+++ b/xbmc/Application.cpp
@@ -1586,9 +1586,10 @@ void CApplication::OnSettingChanged(const CSetting *setting)
else if (settingId == "lookandfeel.skintheme")
{
// also set the default color theme
- string colorTheme = URIUtils::ReplaceExtension(((CSettingString*)setting)->GetValue(), ".xml");
- if (StringUtils::EqualsNoCase(colorTheme, "Textures.xml"))
- colorTheme = "defaults.xml";
+ CStdString colorTheme = ((CSettingString*)setting)->GetValue();
+ URIUtils::RemoveExtension(colorTheme);
+ if (StringUtils::EqualsNoCase(colorTheme, "Textures"))
+ colorTheme = "defaults";
// check if we have to change the skin color
// if yes, it will trigger a call to ReloadSkin() in