From 1409521eb239996f4a08c472f0ad731e75f2f389 Mon Sep 17 00:00:00 2001 From: Rick Walsh Date: Thu, 10 Aug 2017 18:33:39 +1000 Subject: 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 --- mobile-widgets/qml/DiveList.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'mobile-widgets/qml/DiveList.qml') diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 4e54d8781..7e2e01112 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -162,6 +162,7 @@ Kirigami.ScrollablePage { onClicked: { parent.visible = false timer.stop() + detailsWindow.showDiveIndex(index) manager.deleteDive(dive.id) } } -- cgit v1.2.3-70-g09d2