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>
This commit is contained in:
Sebastian Kügler 2016-01-19 18:39:20 +01:00
parent 1030cb265a
commit e9e843dc3c

View file

@ -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