mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
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:
parent
1030cb265a
commit
e9e843dc3c
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue