mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
DiveList.qml: set detailsWindow index before deleting dive from list
This appears to fix the mystery crashes that can occur when deleting a dive from the dive list. Fixes: #497 Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
This commit is contained in:
parent
e04ef1df1e
commit
1409521eb2
1 changed files with 1 additions and 0 deletions
|
@ -162,6 +162,7 @@ Kirigami.ScrollablePage {
|
|||
onClicked: {
|
||||
parent.visible = false
|
||||
timer.stop()
|
||||
detailsWindow.showDiveIndex(index)
|
||||
manager.deleteDive(dive.id)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue