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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-12-12 15:03:25 -08:00
parent d541b9fd42
commit 719b732230
3 changed files with 10 additions and 7 deletions

View file

@ -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);