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:
Rick Walsh 2017-08-10 18:33:39 +10:00 committed by Dirk Hohndel
parent e04ef1df1e
commit 1409521eb2

View file

@ -162,6 +162,7 @@ Kirigami.ScrollablePage {
onClicked: {
parent.visible = false
timer.stop()
detailsWindow.showDiveIndex(index)
manager.deleteDive(dive.id)
}
}