From 4c4a7a6d968fa27de72f1510c55d327a7e919d7c Mon Sep 17 00:00:00 2001 From: Patrick Valsecchi Date: Wed, 20 Nov 2013 13:40:14 +0100 Subject: Refactoring of the configuration handling. Before, when clicking the OK button on the preferences GUI, we were updating in-memory preferences from the GUI, saving them to the configuration file from the GUI, reloading from the file to the in-memory preferences. Then, to add to the ducplication, when the application was exiting, some fields were saved again. Basically the first step and the last step were useless appart from the fact the the other steps where missing a few fields here and there. This patch removes the first step and fixes the missing fields. Signed-off-by: Patrick Valsecchi ACKed-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profilegraphics.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'qt-ui/profilegraphics.cpp') diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index 3e7cff237..834d7bdb1 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -1557,7 +1557,6 @@ void ToolTipItem::persistPos() s.beginGroup("ProfileMap"); s.setValue("tooltip_position", currentPos); s.endGroup(); - s.sync(); } void ToolTipItem::readPos() -- cgit v1.2.3-70-g09d2