From e9e843dc3cbd7bcb0519d07bf93c918449ca029b Mon Sep 17 00:00:00 2001 From: Sebastian Kügler Date: Tue, 19 Jan 2016 18:39:20 +0100 Subject: Close edit drawer when current dive changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This prevents having the edit drawer opened at a different than the current dive. Signed-off-by: Sebastian Kügler --- qt-mobile/qml/DiveDetails.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qt-mobile/qml/DiveDetails.qml') 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 -- cgit v1.2.3-70-g09d2