summaryrefslogtreecommitdiff
path: root/plugingui/mainwindow.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-04-18 17:11:35 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-04-18 17:11:35 +0200
commit1d27cbf59bb9f4020ed9ff37fa4e9f15082d023b (patch)
tree3849d44a156fdd840e47e3f777d1bbbca121d75c /plugingui/mainwindow.cc
parent4cb5fa5b3fd639c0f1f8a6a5bacd1b3380d1967b (diff)
Restore paths of FileBrowser as per the old UI.
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)