From e26cb52af13e2ad929ea64b4462ebd0c4a2ab9b3 Mon Sep 17 00:00:00 2001 From: Abs62 Date: Mon, 12 Nov 2012 18:34:47 +0400 Subject: [PATCH] Lost some settings when "Options" dialog called (issue #135) --- mainwindow.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mainwindow.cc b/mainwindow.cc index 4386ee2f..5da4e99d 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -1414,6 +1414,12 @@ void MainWindow::editPreferences() { Config::Preferences p = preferences.getPreferences(); + // These parameters are not set in dialog + p.maxStringsInHistory = cfg.preferences.maxStringsInHistory; + p.zoomFactor = cfg.preferences.zoomFactor; + p.wordsZoomLevel = cfg.preferences.wordsZoomLevel; + p.hideMenubar = cfg.preferences.hideMenubar; + bool needReload = false; // See if we need to reapply stylesheets