Remember the column we are sorting by

A call to DiveListView::reload always reset our sortcolumn to be 0.
Instead we are tracking the correct sort column and sort direction.

This also removes an obsolete private member that was unused.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-11-05 14:09:08 +09:00
parent eaa0d647b7
commit 01d515b5d8
2 changed files with 9 additions and 5 deletions

View file

@ -48,7 +48,8 @@ signals:
private:
bool mouseClickSelection;
int currentHeaderClicked;
int sortColumn;
Qt::SortOrder currentOrder;
DiveTripModel::Layout currentLayout;
QLineEdit *searchBox;
QModelIndex contextMenuIndex;