summaryrefslogtreecommitdiff
path: root/plugingui/pluginconfig.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/pluginconfig.cc')
-rw-r--r--plugingui/pluginconfig.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugingui/pluginconfig.cc b/plugingui/pluginconfig.cc
index 85e101d..a249945 100644
--- a/plugingui/pluginconfig.cc
+++ b/plugingui/pluginconfig.cc
@@ -30,37 +30,37 @@
#define CONFIGFILENAME "plugingui.conf"
-namespace GUI {
+namespace GUI
+{
Config::Config()
: ConfigFile(CONFIGFILENAME)
{
+ load();
}
Config::~Config()
{
+ save();
}
bool Config::load()
{
- lastkit.clear();
- lastmidimap.clear();
+ defaultKitPath.clear();
if(!ConfigFile::load())
{
return false;
}
- lastkit = getValue("lastkit");
- lastmidimap = getValue("lastmidimap");
+ defaultKitPath = getValue("defaultKitPath");
return true;
}
bool Config::save()
{
- setValue("lastkit", lastkit);
- setValue("lastmidimap", lastmidimap);
+ setValue("defaultKitPath", defaultKitPath);
return ConfigFile::save();
}