diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-05-29 10:34:25 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-29 10:35:21 -0700 |
commit | dd3edb0dcd4d4e3bc00ad66c2042a30b8f4a8940 (patch) | |
tree | d29e4eeebd3aae8252bb428ecfc516021d71fa87 /qt-models/diveimportedmodel.cpp | |
parent | 57d01701aa81f7b1033ff0b19a2d128554aeed7d (diff) | |
download | subsurface-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.cpp | 1 |
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 { |