aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command_divelist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/command_divelist.cpp')
-rw-r--r--desktop-widgets/command_divelist.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/desktop-widgets/command_divelist.cpp b/desktop-widgets/command_divelist.cpp
index f45202aa9..845afac75 100644
--- a/desktop-widgets/command_divelist.cpp
+++ b/desktop-widgets/command_divelist.cpp
@@ -754,8 +754,12 @@ RemoveDivesFromTrip::RemoveDivesFromTrip(const QVector<dive *> &divesToRemove)
{
setText(tr("remove %n dive(s) from trip", "", divesToRemove.size()));
divesToMove.divesToMove.reserve(divesToRemove.size());
- for (dive *d: divesToRemove)
+ for (dive *d: divesToRemove) {
+ // If a user manually removes a dive from a trip, don't autogroup this dive.
+ // The flag will not be reset on undo, but that should be acceptable.
+ d->notrip = true;
divesToMove.divesToMove.push_back( {d, nullptr} );
+ }
}
RemoveAutogenTrips::RemoveAutogenTrips()