diff options
Diffstat (limited to 'mainwindow.cpp')
| -rw-r--r-- | mainwindow.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 0010dba..3682891 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -41,8 +41,7 @@ MainWindow::MainWindow(QWidget *parent) : MainWindow::~MainWindow() { - this->favourites.save(settings); - this->current_style.save(settings); + this->saveSettings(); delete ui; } @@ -82,6 +81,11 @@ void MainWindow::setUrlPreview(const QUrl &url) } } +void MainWindow::saveSettings() +{ + this->favourites.save(settings); + this->current_style.save(settings); +} void MainWindow::on_browser_tabs_currentChanged(int index) { |
