diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-25 06:19:05 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-25 06:19:05 -0700 |
commit | a85023a661928142da2b9d78775099b4a080569d (patch) | |
tree | 4f2c2341848aae57ea3f3ddacd6879f514e426a1 /qt-ui/divelistview.cpp | |
parent | 54592fdcfa2d3c9ea17ddb2ded635c5f16bf92f6 (diff) | |
download | subsurface-a85023a661928142da2b9d78775099b4a080569d.tar.gz |
Dive list: remember the current sort colum
Silly bug. We never actually remembered our current sort column when
changing the sort order.
See #518
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r-- | qt-ui/divelistview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index 92e8dd506..56617479b 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -309,6 +309,8 @@ void DiveListView::headerClicked(int i) } } restoreSelection(); + // remember the new sort column + sortColumn = i; } void DiveListView::reload(DiveTripModel::Layout layout, bool forceSort) |