From af4bd16f88f6bedaf5d7387844ab4b8d5b1848cc Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 11 Jan 2020 15:29:45 -0800 Subject: mobile: replace undoDelete() with generic undo() Since we are using the existing command infrastructure, this isn't specific to undoing a delete. This commit renames the function and removes its use in the UI, the next commit will then add the generic undo to the UI. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetails.qml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'mobile-widgets/qml') 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 { -- cgit v1.2.3-70-g09d2