From dd3edb0dcd4d4e3bc00ad66c2042a30b8f4a8940 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 29 May 2017 10:34:25 -0700 Subject: [PATCH] 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 --- qt-models/diveimportedmodel.cpp | 1 + 1 file changed, 1 insertion(+) 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 DiveImportedModel::roleNames() const {