diff options
Diffstat (limited to 'qt-mobile/qml/DiveDetails.qml')
-rw-r--r-- | qt-mobile/qml/DiveDetails.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml index 43b6c5e88..c5fb0e4f0 100644 --- a/qt-mobile/qml/DiveDetails.qml +++ b/qt-mobile/qml/DiveDetails.qml @@ -63,11 +63,12 @@ MobileComponents.Page { text: "Delete dive" iconName: "trash-empty" onTriggered: { - manager.deleteDive(diveDetailsListView.currentItem.modelData.dive.id) + var deletedId = diveDetailsListView.currentItem.modelData.dive.id + manager.deleteDive(deletedId) var notification = notificationComponent.createObject(contentItem.parent); notification.showNotification("Dive deleted", 3000, "Undo", function() { - print("now I need to undo!") + manager.undoDelete(deletedId) }); contextDrawer.close() stackView.pop() |