From ec37c71f5eeb7d4b0c4b8719b52583fadb0b8f4c Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 26 Nov 2018 23:39:37 +0100 Subject: Core: add trip_table parameter to trip-functions Currently trips are added to the global trip table. If we want to make dive-import undoable, we should be able to parse trips of a log-file into a distinct table. Therefore, add a trip_table parameter to - insert_trip() - create_and_hookup_trip_from_dive() - autogroup_dives() - unregister_trip() - remove_dive_from_trip() Signed-off-by: Berthold Stoeger --- mobile-widgets/qmlmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 75d44deb1..b78af626a 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1280,7 +1280,7 @@ bool QMLManager::undoDelete(int id) return false; } if (deletedTrip) - insert_trip(deletedTrip); + insert_trip(deletedTrip, &trip_table); if (deletedDive->divetrip) { struct dive_trip *trip = deletedDive->divetrip; deletedDive->divetrip = NULL; -- cgit v1.2.3-70-g09d2