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>
This commit is contained in:
Dirk Hohndel 2014-05-25 06:19:05 -07:00
parent 54592fdcfa
commit a85023a661

View file

@ -309,6 +309,8 @@ void DiveListView::headerClicked(int i)
} }
} }
restoreSelection(); restoreSelection();
// remember the new sort column
sortColumn = i;
} }
void DiveListView::reload(DiveTripModel::Layout layout, bool forceSort) void DiveListView::reload(DiveTripModel::Layout layout, bool forceSort)