From fc706a0d722c2ae07d298f6e13794216e8d96a90 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 31 Aug 2019 08:46:11 +0200 Subject: Filter: reload map on myInvalidate Since selection change doesn't to a full map reload, we have to reload the map on filter changes, since the shown dive sites change. Signed-off-by: Berthold Stoeger --- qt-models/filtermodels.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 @@ -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) -- cgit v1.2.3-70-g09d2