From a85023a661928142da2b9d78775099b4a080569d Mon Sep 17 00:00:00 2001
From: Dirk Hohndel <dirk@hohndel.org>
Date: Sun, 25 May 2014 06:19:05 -0700
Subject: [PATCH] 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>
---
 qt-ui/divelistview.cpp | 2 ++
 1 file changed, 2 insertions(+)

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)