aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveDetailsEdit.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-28 16:01:29 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-28 18:20:15 -0800
commitc52769a90fcb26fadfc56b1584a03ddfa76b24dd (patch)
tree2083f34a21d0c589fcad4021281af6fe095139e0 /qt-mobile/qml/DiveDetailsEdit.qml
parent106bb07cff60057145b6eca38928951bd42dd9a7 (diff)
downloadsubsurface-c52769a90fcb26fadfc56b1584a03ddfa76b24dd.tar.gz
QML UI: use unique names for the different ListViews
Having both the dive list (the vertical list) and the sequence of dive details (the horizontally swipe-able list) named the same caused me endless confusion. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetailsEdit.qml')
-rw-r--r--qt-mobile/qml/DiveDetailsEdit.qml20
1 files changed, 10 insertions, 10 deletions
diff --git a/qt-mobile/qml/DiveDetailsEdit.qml b/qt-mobile/qml/DiveDetailsEdit.qml
index 14366fec4..ed32e5d50 100644
--- a/qt-mobile/qml/DiveDetailsEdit.qml
+++ b/qt-mobile/qml/DiveDetailsEdit.qml
@@ -159,16 +159,16 @@ Item {
detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, detailsEdit.suitText,
detailsEdit.buddyText, detailsEdit.divemasterText, detailsEdit.notesText)
// apply the changes to the dive detail view
- diveListView.currentItem.modelData.date = detailsEdit.dateText
- diveListView.currentItem.modelData.location = detailsEdit.locationText
- diveListView.currentItem.modelData.duration = detailsEdit.durationText
- diveListView.currentItem.modelData.depth = detailsEdit.depthText
- diveListView.currentItem.modelData.airtemp = detailsEdit.airtempText
- diveListView.currentItem.modelData.watertemp = detailsEdit.watertempText
- diveListView.currentItem.modelData.suit = detailsEdit.suitText
- diveListView.currentItem.modelData.buddy = detailsEdit.buddyText
- diveListView.currentItem.modelData.divemaster = detailsEdit.divemasterText
- diveListView.currentItem.modelData.notes = detailsEdit.notesText
+ diveDetailsListView.currentItem.modelData.date = detailsEdit.dateText
+ diveDetailsListView.currentItem.modelData.location = detailsEdit.locationText
+ diveDetailsListView.currentItem.modelData.duration = detailsEdit.durationText
+ diveDetailsListView.currentItem.modelData.depth = detailsEdit.depthText
+ diveDetailsListView.currentItem.modelData.airtemp = detailsEdit.airtempText
+ diveDetailsListView.currentItem.modelData.watertemp = detailsEdit.watertempText
+ diveDetailsListView.currentItem.modelData.suit = detailsEdit.suitText
+ diveDetailsListView.currentItem.modelData.buddy = detailsEdit.buddyText
+ diveDetailsListView.currentItem.modelData.divemaster = detailsEdit.divemasterText
+ diveDetailsListView.currentItem.modelData.notes = detailsEdit.notesText
diveDetailsPage.state = "view"
}
}