From 208b3bb9af8039ef0e2fc70e0e617c24db047e5d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 18 Feb 2019 12:45:48 -0800 Subject: 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 --- desktop-widgets/filterwidget2.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/filterwidget2.cpp b/desktop-widgets/filterwidget2.cpp index 24a66513e..592f016d1 100644 --- a/desktop-widgets/filterwidget2.cpp +++ b/desktop-widgets/filterwidget2.cpp @@ -219,7 +219,6 @@ void FilterWidget2::showEvent(QShowEvent *event) void FilterWidget2::hideEvent(QHideEvent *event) { QWidget::hideEvent(event); - clearFilter(); } void FilterWidget2::filterDataChanged(const FilterData &data) -- cgit v1.2.3-70-g09d2