aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveDetails.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-11 08:05:29 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-11 10:10:13 -0800
commit5a83226aa8d7211e88097265af1cba29113d6cc1 (patch)
treee5dc66baa175498382b5da26bbad599e12c75cec /qt-mobile/qml/DiveDetails.qml
parentc4fb42f8ad5827619c72e7c7d8f75d247c08ae68 (diff)
downloadsubsurface-5a83226aa8d7211e88097265af1cba29113d6cc1.tar.gz
QML UI: try to clean up UI before showing notification
This way we shouldn't have a drawer or other changes to the UI prevent the user from seeing / interacting with the notification. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetails.qml')
-rw-r--r--qt-mobile/qml/DiveDetails.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index 19a3466db..d7db35227 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -62,14 +62,14 @@ MobileComponents.Page {
text: "Delete dive"
iconName: "trash-empty"
onTriggered: {
+ contextDrawer.close()
var deletedId = diveDetailsListView.currentItem.modelData.dive.id
manager.deleteDive(deletedId)
- showPassiveNotification("Dive deleted", 3000, "Undo",
- function() {
- manager.undoDelete(deletedId)
- });
- contextDrawer.close()
stackView.pop()
+ showPassiveNotification("Dive deleted", 3000, "Undo",
+ function() {
+ manager.undoDelete(deletedId)
+ });
}
}
]