summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DiveDetails.qml9
1 files changed, 1 insertions, 8 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml
index 5d52b89ca..a886a2c50 100644
--- a/mobile-widgets/qml/DiveDetails.qml
+++ b/mobile-widgets/qml/DiveDetails.qml
@@ -152,14 +152,7 @@ Kirigami.Page {
icon {
name: ":/icons/trash-empty.svg"
}
- onTriggered: {
- var deletedId = currentItem.modelData.id
- manager.deleteDive(deletedId)
- showPassiveNotification("Dive deleted", 5000, "Undo",
- function() {
- manager.undoDelete(deletedId)
- });
- }
+ onTriggered: manager.deleteDive(currentItem.modelData.id)
}
property QtObject cancelAction: Kirigami.Action {