diff options
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 6a0e1ba7f..b120ef4d7 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -280,7 +280,10 @@ Kirigami.ScrollablePage { MouseArea { anchors.fill: headingBackground onClicked: { - activeTrip = section + if (activeTrip === section) + activeTrip = "" + else + activeTrip = section } } Controls.Label { @@ -313,7 +316,10 @@ Kirigami.ScrollablePage { MouseArea { anchors.fill: sectionText onClicked: { - activeTrip = section + if (activeTrip === section) + activeTrip = "" + else + activeTrip = section } } } |