aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/filtermodels.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp
index 9ef910def..7beb11d49 100644
--- a/qt-models/filtermodels.cpp
+++ b/qt-models/filtermodels.cpp
@@ -12,6 +12,7 @@
#if !defined(SUBSURFACE_MOBILE)
#include "desktop-widgets/divelistview.h"
#include "desktop-widgets/mainwindow.h"
+#include "desktop-widgets/mapwidget.h"
#endif
#include <QDebug>
@@ -264,6 +265,11 @@ void MultiFilterSortModel::myInvalidate()
countsChanged();
}
+#if !defined(SUBSURFACE_MOBILE)
+ // The shown maps may have changed -> reload the map widget.
+ MapWidget::instance()->reload();
+#endif
+
emit filterFinished();
#if !defined(SUBSURFACE_MOBILE)