mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
d064f78608
commit
cccd242a36
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue