summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-31 10:19:24 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-31 20:33:11 -0700
commit7bddef02cd9432d44d1094790dc930d58732681c (patch)
tree6af5eabb5d4c0581ee73ee31b69da84ef95bdcf9 /mobile-widgets/qml
parent1549d6f528cf243cf67ae0a83bee8a554a33b6da (diff)
downloadsubsurface-7bddef02cd9432d44d1094790dc930d58732681c.tar.gz
mobile/dive-list: try to force focus on filter text field
This was triggered by a change in enabled, but what is really changing is the visible property. This should work better. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index b8cb553c7..50f69436b 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -416,7 +416,7 @@ Kirigami.ScrollablePage {
onAccepted: {
manager.setFilter(text, sitefilterMode.currentIndex)
}
- onEnabledChanged: {
+ onVisibleChanged: {
// reset the filter when it gets toggled
text = ""
if (visible) {