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>
This commit is contained in:
Berthold Stoeger 2020-09-06 23:58:46 +02:00 committed by Dirk Hohndel
parent d064f78608
commit cccd242a36

View file

@ -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
}