From 1d27cbf59bb9f4020ed9ff37fa4e9f15082d023b Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 18 Apr 2017 17:11:35 +0200 Subject: Restore paths of FileBrowser as per the old UI. --- plugingui/mainwindow.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'plugingui/mainwindow.cc') 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) -- cgit v1.2.3