aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index c1361dd..f735b2a 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -31,9 +31,12 @@ MainWindow::MainWindow(QApplication * app, QWidget *parent) :
this->statusBar()->addPermanentWidget(this->load_time);
this->favourites.load(global_settings);
- this->current_style.load(global_settings);
this->protocols.load(global_settings);
+ global_settings.beginGroup("Theme");
+ this->current_style.load(global_settings);
+ global_settings.endGroup();
+
ui->favourites_view->setModel(&favourites);
this->ui->outline_window->setVisible(false);
@@ -135,9 +138,12 @@ void MainWindow::setUrlPreview(const QUrl &url)
void MainWindow::saveSettings()
{
this->favourites.save(global_settings);
- this->current_style.save(global_settings);
this->protocols.save(global_settings);
+ global_settings.beginGroup("Theme");
+ this->current_style.save(global_settings);
+ global_settings.endGroup();
+
{
global_settings.beginGroup("Window State");