diff --git a/Widgets/NColorChoice.qml b/Widgets/NColorChoice.qml index 4fcf58a02..91aedfd88 100644 --- a/Widgets/NColorChoice.qml +++ b/Widgets/NColorChoice.qml @@ -10,11 +10,11 @@ RowLayout { property string description: I18n.tr("common.select-color-description") property string tooltip: "" property string currentKey: "" - property var defaultValue: "none" + property var defaultValue: undefined property var noneColor: undefined // color declared as var so we can nullify property var noneOnColor: undefined // color declared as var so we can nullify - readonly property bool isValueChanged: currentKey !== defaultValue + readonly property bool isValueChanged: (defaultValue !== undefined) && (currentKey !== defaultValue) readonly property string indicatorTooltip: { I18n.tr("panels.indicator.default-value", { "value": defaultValue === "" ? "(empty)" : String(defaultValue)