diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-03-13 10:28:27 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-03-13 19:41:01 +0100 |
commit | 0c6be6e5e9acd6f0597a2fcfaf5af9d93975435b (patch) | |
tree | 9e163abe9498a06a474c92ea7a3c11a1b7ad0437 /src/configuration.h | |
parent | 6efb37c888edec3bb6e37dbf41c54e940441bbea (diff) | |
download | mana-0c6be6e5e9acd6f0597a2fcfaf5af9d93975435b.tar.gz mana-0c6be6e5e9acd6f0597a2fcfaf5af9d93975435b.tar.bz2 mana-0c6be6e5e9acd6f0597a2fcfaf5af9d93975435b.tar.xz mana-0c6be6e5e9acd6f0597a2fcfaf5af9d93975435b.zip |
Make removing a server effective even when quitting afterwards
The custom server list was only saved when connecting to a server.
Instead, removing a server from the list should be effective regardless
of what is done afterwards.
Reviewed-by: peavey
Diffstat (limited to 'src/configuration.h')
-rw-r--r-- | src/configuration.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/configuration.h b/src/configuration.h index 0d813285..a0c896a5 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -219,6 +219,9 @@ class Configuration : public ConfigurationObject void setValue(const std::string &key, const std::string &value); + inline void setValue(const std::string &key, const char *value) + { setValue(key, std::string(value)); } + inline void setValue(const std::string &key, float value) { setValue(key, toString(value)); } @@ -232,7 +235,7 @@ class Configuration : public ConfigurationObject { setValue(key, toString(value)); } inline void setValue(const std::string &key, bool value) - { setValue(key, value ? std::string("1") : std::string("0")); } + { setValue(key, value ? "1" : "0"); } private: typedef std::list<ConfigListener*> Listeners; |