diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-30 01:50:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-30 01:50:27 +0300 |
commit | c56825758fb5ef6cf0094296b16be717c29c4665 (patch) | |
tree | f093c692d00503427f4ab266449ca770624bb390 /src/configuration.cpp | |
parent | 24ed41de8f0d8049a8146efb7dff88516e997981 (diff) | |
download | plus-c56825758fb5ef6cf0094296b16be717c29c4665.tar.gz plus-c56825758fb5ef6cf0094296b16be717c29c4665.tar.bz2 plus-c56825758fb5ef6cf0094296b16be717c29c4665.tar.xz plus-c56825758fb5ef6cf0094296b16be717c29c4665.zip |
Prevent losing per server settings.
Prevent losing per server settings if partially connect to server
and save settings.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index ca2281a71..66615d12d 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -367,6 +367,16 @@ Configuration::~Configuration() cleanDefaults(); } +void Configuration::unload() +{ + cleanDefaults(); + mConfigPath.clear(); + mDirectory.clear(); + mFilename.clear(); + mUseResManager = false; + ConfigurationObject::clear(); +} + void Configuration::setDefaultValues(DefaultsData *const defaultsData) { cleanDefaults(); |