Commit a4b365df authored by jan.koester's avatar jan.koester
Browse files

fixes

parent 8864c0fa
Loading
Loading
Loading
Loading
+3 −9
Changes for client/qml/PropertyPanel.qml: 3 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@ ColumnLayout {
    property string widgetName: ""
    property var _debounceTimer: null

    ListModel { id: surveyListModel }

    function loadProperties(uuid) {
        currentUuid = uuid
        var json = localApi.getElementProperties(uuid)
@@ -536,7 +538,7 @@ ColumnLayout {
                        palette.text: Theme.textPrimary
                        palette.buttonText: Theme.textPrimary
                        textRole: "text"
                        model: ListModel { id: surveyListModel }
                        model: surveyListModel
                        background: Rectangle { color: Theme.bgTertiary; border.color: Theme.border; radius: Theme.radius }

                        onActivated: {
@@ -701,14 +703,6 @@ ColumnLayout {
            surveyListModel.clear()
            for (var i = 0; i < list.length; i++)
                surveyListModel.append({"text": list[i]})
            // Re-select current value
            var curVal = propPanel.currentProps["survey_name"] || ""
            for (var j = 0; j < surveyListModel.count; j++) {
                if (surveyListModel.get(j).text === curVal) {
                    surveyCombo.currentIndex = j
                    break
                }
            }
        }
    }
}