diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-05 14:09:08 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-05 14:23:37 +0900 |
commit | 01d515b5d8c2988518f8a4a016fb6493c4639e7b (patch) | |
tree | 07b5ac9012064865805ecde80f9c006850bb5324 /qt-ui/divelistview.h | |
parent | eaa0d647b7ed4f37bdab35cac8177a8e132e47da (diff) | |
download | subsurface-01d515b5d8c2988518f8a4a016fb6493c4639e7b.tar.gz |
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>
Diffstat (limited to 'qt-ui/divelistview.h')
-rw-r--r-- | qt-ui/divelistview.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h index c1222abdf..384ece9a3 100644 --- a/qt-ui/divelistview.h +++ b/qt-ui/divelistview.h @@ -48,7 +48,8 @@ signals: private: bool mouseClickSelection; - int currentHeaderClicked; + int sortColumn; + Qt::SortOrder currentOrder; DiveTripModel::Layout currentLayout; QLineEdit *searchBox; QModelIndex contextMenuIndex; |