mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
4713611ea8
commit
fc706a0d72
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue