summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets')
-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 096482c2d..971cd7dc9 100644
--- a/mobile-widgets/qml/DiveDetails.qml
+++ b/mobile-widgets/qml/DiveDetails.qml
@@ -96,7 +96,7 @@ Kirigami.Page {
actions.main: Action {
iconName: state !== "view" ? "document-save" : "document-edit"
onTriggered: {
- manager.appendTextToLog("save/edit button triggered")
+ manager.appendTextToLog("save/edit button triggered")
if (state === "edit" || state === "add") {
detailsEdit.saveData()
} else {
@@ -117,13 +117,6 @@ Kirigami.Page {
// if we were in view mode, don't accept the event and pop the page
}
- onUpdateCurrentIdxChanged: {
- if (diveDetailsListView.currentIndex != updateCurrentIdx) {
- diveDetailsListView.currentIndex = updateCurrentIdx
- manager.selectedDiveTimestamp = diveDetailsListView.currentItem.modelData.dive.timestamp
- }
- }
-
onCurrentItemChanged: {
manager.selectedDiveTimestamp = diveDetailsListView.currentItem.modelData.dive.timestamp
}