Mercurial > retraceit
changeset 55:23672cbc3e5f
Write out default values for sortsettings in the ini file.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 19 May 2015 10:13:04 +0200 |
parents | db2a9d9c15fc |
children | 016cbcb1a233 |
files | src/metadataview.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/metadataview.cpp Mon May 18 12:12:15 2015 +0200 +++ b/src/metadataview.cpp Tue May 19 10:13:04 2015 +0200 @@ -196,7 +196,9 @@ void MetaDataView::applyDefaultSort() { QSettings settings; QString sortField = settings.value(SORT_COLUMN_KEY, SORT_COLUMN_DEFAULT).toString(); + settings.setValue(SORT_COLUMN_KEY, sortField); bool sortAsc = settings.value(SORT_ORDER_KEY, SORT_ORDER_VALUE).toBool(); + settings.setValue(SORT_ORDER_KEY, sortAsc); int idx = -1; for (int i=0; i < mSortModel->columnCount(); i++) {