From a2bc3e02f8007d582676d349b570695a6af218f0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 18 Mar 2017 14:25:59 -0700 Subject: QML UI: small cleanups Remove unused signal handler. Small whitespace cleanup. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetails.qml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'mobile-widgets') 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 } -- cgit v1.2.3-70-g09d2