From 8c9a4ecd4b06d62b8b2b6b5a36e025aa84521ec7 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 21 Sep 2015 15:04:52 -0300 Subject: Stabilize the location model/proxy model Since I removed the old location edit from the UI, I also need to remove a bit of code from the UI that was calling it. fix a few crashes regarding the old location edit. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/locationinformation.h') diff --git a/qt-ui/locationinformation.h b/qt-ui/locationinformation.h index 18c3dc760..16d5a3eae 100644 --- a/qt-ui/locationinformation.h +++ b/qt-ui/locationinformation.h @@ -64,6 +64,7 @@ class DiveLocationFilterProxyModel : public QSortFilterProxyModel { public: DiveLocationFilterProxyModel(QObject *parent = 0); virtual bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const; + virtual bool lessThan(const QModelIndex& source_left, const QModelIndex& source_right) const; }; class DiveLocationModel : public QAbstractTableModel { -- cgit v1.2.3-70-g09d2