mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Partially fix dive downloading
The Qt branch didn't set the preexisting dive count, so matching old dives didn't work and it always downloaded all of them. Also, we need to autogroup dives before displaying them if autogrouping is on. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a960cd2d45
commit
84d4a2dae0
1 changed files with 3 additions and 0 deletions
|
@ -1057,6 +1057,9 @@ void DiveTripModel::setupModelData()
|
|||
endRemoveRows();
|
||||
}
|
||||
|
||||
if (autogroup)
|
||||
autogroup_dives();
|
||||
dive_table.preexisting = dive_table.nr;
|
||||
while (--i >= 0) {
|
||||
struct dive* dive = get_dive(i);
|
||||
update_cylinder_related_info(dive);
|
||||
|
|
Loading…
Add table
Reference in a new issue