From 719b732230ea7a7afc28944ae359f762d6a6ef48 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 12 Dec 2013 15:03:25 -0800 Subject: Fix incorrect handling of autogrouped trips When toggling autogroup in the menu we ended up setting the NO_TRIP flag for dives that were removed from a trip that was created by autogroup. So toggling things on and off and on again meant no more auto grouping. Fixes #337 Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index ef1817fbe..2090f61a5 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -548,7 +548,7 @@ void DiveListView::removeFromTrip() struct dive *d; for_each_dive(i, d) { if (d->selected) - remove_dive_from_trip(d); + remove_dive_from_trip(d, FALSE); } rememberSelection(); reload(currentLayout, false); -- cgit v1.2.3-70-g09d2