From 84d4a2dae069a2e728cea8d7a4506921b558603f Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sat, 15 Jun 2013 13:45:04 -1000 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/models.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 601f2f628..b85c06741 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -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); -- cgit v1.2.3-70-g09d2