From 2e438e357e69879b866c8469c7183d53045d406d Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 13 Jun 2018 11:03:06 +0100 Subject: [PATCH] Launcher: fix scenery path re-ordering --- src/GUI/qml/AddOns.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GUI/qml/AddOns.qml b/src/GUI/qml/AddOns.qml index c02150b9e..d9fc81dd6 100644 --- a/src/GUI/qml/AddOns.qml +++ b/src/GUI/qml/AddOns.qml @@ -362,7 +362,10 @@ Item { } onPerformMove: { - + var modifiedPaths = _addOns.sceneryPaths.slice() + modifiedPaths.splice(model.index, 1); + modifiedPaths.splice(newIndex, 0, modelData) + _addOns.sceneryPaths = modifiedPaths; } } }