From 4f9526ef8122f3496ee0ead986fcc10c500e0584 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sat, 16 Nov 2013 18:41:47 -0200 Subject: Fix wrong handling of Dive Table, and revert some wrong changes. This patch just reverts some wrong changes that I'v done on a past commit ( sorry ) and correctly handles the selectDive, by using a IDX instead of the dive pointer, as dirk told me it's extremely error-prone since the pointer can change. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/divelistview.h') diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h index d03167635..f257d3b38 100644 --- a/qt-ui/divelistview.h +++ b/qt-ui/divelistview.h @@ -25,7 +25,7 @@ public: void reload(DiveTripModel::Layout layout, bool forceSort = true); bool eventFilter(QObject* , QEvent* ); void unselectDives(); - void selectDive(struct dive *, bool scrollto = false, bool toggle = false); + void selectDive(int dive_table_idx, bool scrollto = false, bool toggle = false); void rememberSelection(); void restoreSelection(); void contextMenuEvent(QContextMenuEvent *event); -- cgit v1.2.3-70-g09d2