aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2016-01-19 18:39:20 +0100
committerGravatar Sebastian Kügler <sebas@kde.org>2016-01-19 18:41:51 +0100
commite9e843dc3cbd7bcb0519d07bf93c918449ca029b (patch)
tree39cbb73b5ba029f714474b6bff4441030d9af39f /qt-mobile
parent1030cb265a46436a1903cdf66d88a7dd3351d3aa (diff)
downloadsubsurface-e9e843dc3cbd7bcb0519d07bf93c918449ca029b.tar.gz
Close edit drawer when current dive changes
This prevents having the edit drawer opened at a different than the current dive. Signed-off-by: Sebastian Kügler <sebas@kde.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/DiveDetails.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index 9b3d3129a..1dba8365b 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -53,7 +53,6 @@ MobileComponents.Page {
currentIndex: -1
boundsBehavior: Flickable.StopAtBounds
maximumFlickVelocity: parent.width/4
- //cacheBuffer: parent.width/2
orientation: ListView.Horizontal
focus: true
clip: true
@@ -61,6 +60,9 @@ MobileComponents.Page {
onMovementEnded: {
currentIndex = indexAt(contentX+1, 1);
}
+ onCurrentIndexChanged: {
+ editDrawer.close();
+ }
delegate: ScrollView {
id: internalScrollView
width: diveListView.width