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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-08-31 08:46:11 +02:00 committed by Dirk Hohndel
parent 4713611ea8
commit fc706a0d72

View file

@ -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)