@@ -26,7 +26,8 @@ Item {
2626
2727 property bool forceNonInteractive: false
2828 property alias scopes: dashContentList.model
29− readonly property alias currentIndex: dashContentList.currentIndex
29+ property alias currentIndex: dashContentList.currentIndex
30+ property int workaroundRestoreIndex: -1
3031 readonly property string currentScopeId: dashContentList.currentItem ? dashContentList.currentItem.scopeId : ""
3132 readonly property var currentScope: dashContentList.currentItem ? dashContentList.currentItem.theScope : null
3233 readonly property bool subPageShown: dashContentList.currentItem && dashContentList.currentItem.item ?
@@ -52,6 +53,15 @@ Item {
5253 set_current_index = undefined;
5354 }
5455 }
56+ onRowsMoved: {
57+ // FIXME This is to workaround a Qt bug with the model moving the current item
58+ // when the list is ListView.SnapOneItem and ListView.StrictlyEnforceRange
59+ // together with the code in Dash.qml
60+ if (row == dashContentList.currentIndex || start == dashContentList.currentIndex) {
61+ dashContent.workaroundRestoreIndex = dashContentList.currentIndex;
62+ dashContentList.currentIndex = -1;
63+ }
64+ }
5565 }
5666
5767 Connections {