summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-09-06 23:58:46 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-09-29 16:13:03 -0700
commitcccd242a363e4443f27a432f208d7296ecd9a02c (patch)
tree4ec08436f697accde1c1b4b25ccbd0292a97109f /desktop-widgets
parentd064f786088ff2aeb44a5b82b3d9743d0d978fc0 (diff)
downloadsubsurface-cccd242a363e4443f27a432f208d7296ecd9a02c.tar.gz
filter: when clearing the filter unselect the current filter preset
It makes no sense to have the a filter preset selected after clearing the filter. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/filterwidget2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/filterwidget2.cpp b/desktop-widgets/filterwidget2.cpp
index 29a024d14..7b06a42b1 100644
--- a/desktop-widgets/filterwidget2.cpp
+++ b/desktop-widgets/filterwidget2.cpp
@@ -162,6 +162,7 @@ void FilterWidget2::clearFilter()
ui.presetTable->selectionModel()->reset(); // Note: we use reset(), because that doesn't emit signals.
ui.fulltextStringMode->setCurrentIndex((int)StringFilterMode::STARTSWITH);
ui.fullText->clear();
+ ui.presetTable->clearSelection();
ignoreSignal = false;
constraintModel.reload({}); // Causes a filter reload
}