summaryrefslogtreecommitdiffstats
path: root/qt-models/diveimportedmodel.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-29 10:34:25 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-29 10:35:21 -0700
commitdd3edb0dcd4d4e3bc00ad66c2042a30b8f4a8940 (patch)
treed29e4eeebd3aae8252bb428ecfc516021d71fa87 /qt-models/diveimportedmodel.cpp
parent57d01701aa81f7b1033ff0b19a2d128554aeed7d (diff)
downloadsubsurface-dd3edb0dcd4d4e3bc00ad66c2042a30b8f4a8940.tar.gz
QML UI: process freshly downloaded dives
This way they get correctly prepared and derived data fields get populated. For example, the dive number gets updated if these are indeed the newest dives. Fixes #408 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/diveimportedmodel.cpp')
-rw-r--r--qt-models/diveimportedmodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/diveimportedmodel.cpp b/qt-models/diveimportedmodel.cpp
index f121aef31..c3f58cc73 100644
--- a/qt-models/diveimportedmodel.cpp
+++ b/qt-models/diveimportedmodel.cpp
@@ -162,6 +162,7 @@ void DiveImportedModel::recordDives()
diveTable->dives[i] = NULL;
}
diveTable->nr = 0;
+ process_dives(true, true);
}
QHash<int, QByteArray> DiveImportedModel::roleNames() const {