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:
@@ -162,6 +162,7 @@ Kirigami.ScrollablePage {
|
||||
onClicked: {
|
||||
parent.visible = false
|
||||
timer.stop()
|
||||
detailsWindow.showDiveIndex(index)
|
||||
manager.deleteDive(dive.id)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user