summaryrefslogtreecommitdiff
path: root/plugingui/mainwindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/mainwindow.cc')
-rw-r--r--plugingui/mainwindow.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugingui/mainwindow.cc b/plugingui/mainwindow.cc
index e57008d..e00b18b 100644
--- a/plugingui/mainwindow.cc
+++ b/plugingui/mainwindow.cc
@@ -38,12 +38,10 @@ namespace GUI
MainWindow::MainWindow(Settings& settings, void* native_window)
: Window(native_window)
- , settings(settings)
, settings_notifier(settings)
- , main_tab(this, settings, settings_notifier)
+ , main_tab(this, settings, settings_notifier, config)
{
- // FIXME: remove this when settings are actually used in this class
- (void)this->settings;
+ config.load();
CONNECT(this, sizeChangeNotifier, this, &MainWindow::sizeChanged);
CONNECT(eventHandler(), closeNotifier, this, &MainWindow::closeEventHandler);
@@ -59,6 +57,11 @@ MainWindow::MainWindow(Settings& settings, void* native_window)
about_text_field.setReadOnly(true);
}
+MainWindow::~MainWindow()
+{
+ config.save();
+}
+
bool MainWindow::processEvents()
{
// if(!initialised)