diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2017-08-10 18:33:39 +1000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-08-10 09:06:44 -0700 |
commit | 1409521eb239996f4a08c472f0ad731e75f2f389 (patch) | |
tree | 8c348f85c5b06203d93c375887cae661baa5db71 /mobile-widgets/qml | |
parent | e04ef1df1e2be525fa5bee5d2e849d609a58eb83 (diff) | |
download | subsurface-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.qml | 1 |
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) } } |