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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
committed by
Dirk Hohndel
parent
7df8d8c888
commit
ec37c71f5e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user