summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp10
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();