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 <patrick@thus.ch>
ACKed-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Patrick Valsecchi 2013-11-20 13:40:14 +01:00 committed by Dirk Hohndel
parent e0b376622c
commit 4c4a7a6d96
9 changed files with 24 additions and 92 deletions

View file

@ -1557,7 +1557,6 @@ void ToolTipItem::persistPos()
s.beginGroup("ProfileMap");
s.setValue("tooltip_position", currentPos);
s.endGroup();
s.sync();
}
void ToolTipItem::readPos()