mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Removed obsolete debug message
We now handle this case correctly, so don't alert the user to something that isn't an issue at all. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c9bb617a85
commit
7e8a476010
1 changed files with 3 additions and 4 deletions
|
|
@ -1177,10 +1177,6 @@ static void fill_dive_list(void)
|
||||||
trip = find_matching_trip(dive->when);
|
trip = find_matching_trip(dive->when);
|
||||||
if (trip)
|
if (trip)
|
||||||
dive_trip = DIVE_TRIP(trip);
|
dive_trip = DIVE_TRIP(trip);
|
||||||
else
|
|
||||||
printf ("data seems inconsistent - dive claims to be in dive trip "
|
|
||||||
"yet there appears to be no matching trip\n"
|
|
||||||
"Trying to recover\n");
|
|
||||||
} else {
|
} else {
|
||||||
/* dive is not in a trip and we aren't autogrouping */
|
/* dive is not in a trip and we aren't autogrouping */
|
||||||
dive_trip = NULL;
|
dive_trip = NULL;
|
||||||
|
|
@ -1538,6 +1534,9 @@ static void merge_dive_into_trip_above_cb(GtkWidget *menuitem, GtkTreePath *path
|
||||||
/* add the dive to the trip */
|
/* add the dive to the trip */
|
||||||
for (;;) {
|
for (;;) {
|
||||||
dive->divetrip = prev_dive->divetrip;
|
dive->divetrip = prev_dive->divetrip;
|
||||||
|
/* we intentionally changed the dive_trip, so update the time
|
||||||
|
* stamp that we fall back to when toggling autogroup */
|
||||||
|
dive->divetrip->when_from_file = dive->divetrip->when;
|
||||||
dive->tripflag = IN_TRIP;
|
dive->tripflag = IN_TRIP;
|
||||||
(void)move_dive_between_trips(&dive_iter, NULL, &trip_iter, NULL, TRUE);
|
(void)move_dive_between_trips(&dive_iter, NULL, &trip_iter, NULL, TRUE);
|
||||||
prev_dive = dive;
|
prev_dive = dive;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue