diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2012-12-04 22:48:32 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-04 21:21:28 -0800 |
commit | b435166dc3555fbaf9f3d52815650cb96b5df27e (patch) | |
tree | 0d933ba76898277bf6d9b73cab21f13a65f71029 /Makefile | |
parent | fb0d728973712902afcf0640d4c5bbd0aabf0295 (diff) | |
download | subsurface-b435166dc3555fbaf9f3d52815650cb96b5df27e.tar.gz |
Merge trips without modifying the GTK tree
This patch does 4 small divelist.c changes in the following
order of importance:
1) In find_trip_by_time() now there is a check if a trip is actually found
before looking at the "when" flag.
2) Make remember_tree_state() slighly safer. If for example we have recently
deleted a trip from the linked list, it may still exist in the GTK tree model,
thus we want to check when calling find_trip_by_time() if there is an actual
match before setting the "expanded" flag for a trip.
3) When merging two trips in merge_trips_cb(), only use the tree model
to retrieve the timestamps (DIVE_DATE) and then find matching trips with
find_matching_trip(). Once we have pointers to the two trips to be merged,
move dives from one to another iterating with add_dive_to_trip().
4) In merge_trips_cb() - remember the tree state, repopulate the tree and
restore tree state, since now we are not adding/removing rows directly.
tesdsad
Reported-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions