aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md2
-rw-r--r--qt-models/divetripmodel.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 70f19c881..e2dce6425 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,4 @@
-
+- update filter status when loading file [#2961]
---
* Always add new entries at the very top of this file above other existing entries and this note.
diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp
index a48c827dd..8671a62b6 100644
--- a/qt-models/divetripmodel.cpp
+++ b/qt-models/divetripmodel.cpp
@@ -714,6 +714,8 @@ DiveTripModelTree::DiveTripModelTree(QObject *parent) : DiveTripModelBase(parent
void DiveTripModelTree::populate()
{
+ DiveFilter::instance()->updateAll(); // The data was reset - update filter status. TODO: should this really be done here?
+
// we want this to be two calls as the second text is overwritten below by the lines starting with "\r"
uiNotification(QObject::tr("populate data model"));
uiNotification(QObject::tr("start processing"));
@@ -1479,6 +1481,8 @@ DiveTripModelList::DiveTripModelList(QObject *parent) : DiveTripModelBase(parent
void DiveTripModelList::populate()
{
+ DiveFilter::instance()->updateAll(); // The data was reset - update filter status. TODO: should this really be done here?
+
// Fill model
items.reserve(dive_table.nr);
for (int i = 0; i < dive_table.nr; ++i) {