summaryrefslogtreecommitdiff
path: root/plugingui/pluginconfig.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-02-01 18:05:18 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2019-02-01 18:05:18 +0100
commit7a8e610ddde160950839f3af9356d4c416b39396 (patch)
treeea3ba79c11677dd97fa6b5cb567f8ef5628c039a /plugingui/pluginconfig.cc
parent5ca1c40c92f074315bbdfe328c00484ff18146f2 (diff)
Add 'Set default path' button in filebrowser.
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();
}