summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2017-08-10 18:33:39 +1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-10 09:06:44 -0700
commit1409521eb239996f4a08c472f0ad731e75f2f389 (patch)
tree8c348f85c5b06203d93c375887cae661baa5db71 /mobile-widgets/qml
parente04ef1df1e2be525fa5bee5d2e849d609a58eb83 (diff)
downloadsubsurface-1409521eb239996f4a08c472f0ad731e75f2f389.tar.gz
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>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml1
1 files changed, 1 insertions, 0 deletions
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)
}
}