From 6bf4120dbbf7be1b9267e0e86f3948b77870ea71 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 18 Nov 2018 11:15:32 +0100 Subject: Core: replace tripflag by notrip boolean The only remaining use of the tripflag was to mark dives that were removed explicitly from a trip, i.e. shouldn't be autogrouped. Therefore replace the enum by a simple boolean. Currently, there is no way of unsetting the notrip flag. But this shouldn't result in a user-visible change. Signed-off-by: Berthold Stoeger --- mobile-widgets/qmlmanager.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index cc98286a2..70ab87ea5 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1273,10 +1273,8 @@ bool QMLManager::undoDelete(int id) insert_trip(deletedTrip); if (deletedDive->divetrip) { struct dive_trip *trip = deletedDive->divetrip; - tripflag_t tripflag = deletedDive->tripflag; // this gets overwritten in add_dive_to_trip() deletedDive->divetrip = NULL; add_dive_to_trip(deletedDive, trip); - deletedDive->tripflag = tripflag; } record_dive(deletedDive); QListdiveAsList; -- cgit v1.2.3-70-g09d2