aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-29 05:40:12 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-29 07:40:12 -0800
commit957f03f2a437bf735379405540102db5bdb548f4 (patch)
tree379a979b6529151f79232b5a8b68de37c7cbb5b2
parentba4bb567019297e6073f4bcea9938b249e06da73 (diff)
downloadsubsurface-957f03f2a437bf735379405540102db5bdb548f4.tar.gz
QML UI: remove apparently obsolete code
I couldn't make sense of either the code nor the comment, so I tried what broke when I removed it. Nothing that I could find. So maybe we don't need this after all? Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-mobile/qml/DiveDetails.qml4
1 files changed, 0 insertions, 4 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index 7aabdfdbf..8460a7eec 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -44,10 +44,6 @@ MobileComponents.Page {
state = "view"
return
}
- // After saving, the list may be shuffled, so first of all make sure that
- // the listview's currentIndex is the visible item
- // This makes sure that we always edit the currently visible item
- diveDetailsListView.currentIndex = diveDetailsListView.indexAt(diveDetailsListView.contentX+1, 1);
detailsEdit.dive_id = diveDetailsListView.currentItem.modelData.dive.id
detailsEdit.number = diveDetailsListView.currentItem.modelData.dive.number
detailsEdit.dateText = diveDetailsListView.currentItem.modelData.dive.date + " " + diveDetailsListView.currentItem.modelData.dive.time