diff options
author | Patrick Valsecchi <patrick@thus.ch> | 2013-11-20 13:40:14 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-21 08:11:40 -0800 |
commit | 4c4a7a6d968fa27de72f1510c55d327a7e919d7c (patch) | |
tree | 8efda997313870e3b433a8a49b94a47af830fc54 /qt-ui/tableview.cpp | |
parent | e0b376622c505ee631b87b54aefa0130bbfa1237 (diff) | |
download | subsurface-4c4a7a6d968fa27de72f1510c55d327a7e919d7c.tar.gz |
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>
Diffstat (limited to 'qt-ui/tableview.cpp')
-rw-r--r-- | qt-ui/tableview.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-ui/tableview.cpp b/qt-ui/tableview.cpp index d9731b477..80100218a 100644 --- a/qt-ui/tableview.cpp +++ b/qt-ui/tableview.cpp @@ -36,7 +36,6 @@ TableView::~TableView() s.setValue(QString("colwidth%1").arg(i), ui.tableView->columnWidth(i)); } s.endGroup(); - s.sync(); } void TableView::setBtnToolTip(const QString& tooltip) |