summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-18 11:54:57 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-01 10:21:44 -0800
commit3103ca89d911623dfb3daa5e7c352221d15eb7a3 (patch)
treea83ae760a19be38c446f87835ab883cfd0c27f4c
parent2bd4c6f6ec8bdd65af28a5158a456f03171d2c0a (diff)
downloadsubsurface-3103ca89d911623dfb3daa5e7c352221d15eb7a3.tar.gz
filter: on show focus on fulltext-field
After pressing CTRL-F let the user immediately enter a search string. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-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 0e44a6bde..2dee9979b 100644
--- a/desktop-widgets/filterwidget2.cpp
+++ b/desktop-widgets/filterwidget2.cpp
@@ -264,6 +264,7 @@ void FilterWidget2::updatePlanned(int value)
void FilterWidget2::showEvent(QShowEvent *event)
{
QWidget::showEvent(event);
+ ui.fullText->setFocus();
filterDataChanged(filterData);
}