From 2782d14cd322f11d8e24633bb883eee1b4b13ac9 Mon Sep 17 00:00:00 2001 From: louis Date: Thu, 21 Nov 2013 17:44:09 +0100 Subject: Fixed a bug that setup values are not stored if theme is changed --- HISTORY | 1 + config.c | 3 ++- nopacity.c | 3 --- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/HISTORY b/HISTORY index 17b1acf..4cb86c9 100644 --- a/HISTORY +++ b/HISTORY @@ -374,3 +374,4 @@ Version 0.1.4 - Added logo backgrounds in displaychannel also for blended themes - Usage of channel logo background in displaychannel and on menuelements configurable via plugin setup +- Fixed a bug that setup values are not stored if theme is changed diff --git a/config.c b/config.c index 330e9e1..222e82d 100644 --- a/config.c +++ b/config.c @@ -358,7 +358,8 @@ void cNopacityConfig::SetThemeConfigSetupValue(std::string themeName, std::strin std::map >::iterator hit = themeConfigSetup.find(themeName); if (hit != themeConfigSetup.end()) { std::map existingValues = (std::map)hit->second; - existingValues.insert(std::pair(key, value)); + existingValues.erase(key); + existingValues.insert(std::pair(key, value)); themeConfigSetup.erase(themeName); themeConfigSetup.insert(std::pair >(themeName, existingValues)); } else { diff --git a/nopacity.c b/nopacity.c index 0b7b6c8..f75d3b9 100644 --- a/nopacity.c +++ b/nopacity.c @@ -18,9 +18,6 @@ cNopacity::cNopacity(cImageCache *imgCache) : cSkin("nOpacity", &::Theme) { config.SetThemeSetup(); config.SetPathes(); config.SetFontName(); - config.DumpConfig(); - config.DumpThemeConfig(); - geoManager = new cGeometryManager(); geoManager->SetGeometry(); fontManager = new cFontManager(); -- cgit v1.2.3