diff options
author | louis <louis.braun@gmx.de> | 2013-11-21 17:44:09 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-21 17:44:09 +0100 |
commit | 2782d14cd322f11d8e24633bb883eee1b4b13ac9 (patch) | |
tree | f973ff5228e98ee3578c3c50f7253968c6dfca8c /config.c | |
parent | c9ea5c5d475ad272518c9e49aa54ed15f1c850fb (diff) | |
download | skin-nopacity-2782d14cd322f11d8e24633bb883eee1b4b13ac9.tar.gz skin-nopacity-2782d14cd322f11d8e24633bb883eee1b4b13ac9.tar.bz2 |
Fixed a bug that setup values are not stored if theme is changed
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -358,7 +358,8 @@ void cNopacityConfig::SetThemeConfigSetupValue(std::string themeName, std::strin std::map<std::string, std::map<std::string, int> >::iterator hit = themeConfigSetup.find(themeName); if (hit != themeConfigSetup.end()) { std::map<std::string, int> existingValues = (std::map<std::string, int>)hit->second; - existingValues.insert(std::pair<std::string, int>(key, value)); + existingValues.erase(key); + existingValues.insert(std::pair<std::string, int>(key, value)); themeConfigSetup.erase(themeName); themeConfigSetup.insert(std::pair<std::string, std::map<std::string, int> >(themeName, existingValues)); } else { |