From cccd242a363e4443f27a432f208d7296ecd9a02c Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 6 Sep 2020 23:58:46 +0200 Subject: [PATCH] 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 --- desktop-widgets/filterwidget2.cpp | 1 + 1 file changed, 1 insertion(+) 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 }