Desktop: don't clear the filter when the widget is hidden

Only clear the filter when the user explicitly resets it. This way the user can
toggle between the map and the filter widget without losing the filter state.

Fixes #1952

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-02-18 12:45:48 -08:00
parent 106c682c03
commit 208b3bb9af

View file

@ -219,7 +219,6 @@ void FilterWidget2::showEvent(QShowEvent *event)
void FilterWidget2::hideEvent(QHideEvent *event)
{
QWidget::hideEvent(event);
clearFilter();
}
void FilterWidget2::filterDataChanged(const FilterData &data)