aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveDetails.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-18 14:25:59 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-18 17:05:45 -0700
commita2bc3e02f8007d582676d349b570695a6af218f0 (patch)
tree379e8414f787d6374f80c0377014db241eae82f8 /mobile-widgets/qml/DiveDetails.qml
parent9389fd004966d27db3a340940402067fa6aa6559 (diff)
downloadsubsurface-a2bc3e02f8007d582676d349b570695a6af218f0.tar.gz
QML UI: small cleanups
Remove unused signal handler. Small whitespace cleanup. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveDetails.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 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
}