diff options
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index da2b30cf7..66e082163 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -155,12 +155,11 @@ Kirigami.Page { } onTriggered: { var deletedId = currentItem.modelData.id - var deletedIndex = diveDetailsListView.currentIndex manager.deleteDive(deletedId) pageStack.pop() showPassiveNotification("Dive deleted", 5000, "Undo", function() { - diveDetailsListView.currentIndex = manager.undoDelete(deletedId) ? deletedIndex : diveDetailsListView.currentIndex + manager.undoDelete(deletedId) }); } } |