diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-02-18 12:45:48 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-02-19 12:02:58 -0800 |
commit | 208b3bb9af8039ef0e2fc70e0e617c24db047e5d (patch) | |
tree | 4ddd2c2255e4ecc763b2fe813564f546591e6bf5 /desktop-widgets | |
parent | 106c682c03eb48b7248f05bc932cd7dbb9aac35b (diff) | |
download | subsurface-208b3bb9af8039ef0e2fc70e0e617c24db047e5d.tar.gz |
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>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/filterwidget2.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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) |