From 957f03f2a437bf735379405540102db5bdb548f4 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 29 Jan 2016 05:40:12 -0800 Subject: [PATCH] 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 --- qt-mobile/qml/DiveDetails.qml | 4 ---- 1 file changed, 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