diff --git a/kcms/colors/package/contents/ui/main.qml b/kcms/colors/package/contents/ui/main.qml index 0a18d26c0..6f6bdfb44 100644 --- a/kcms/colors/package/contents/ui/main.qml +++ b/kcms/colors/package/contents/ui/main.qml @@ -286,9 +286,8 @@ KCM.GridViewKCM { ColorRadioButton { id: customColorIndicator - property bool isCustomColor: root.accentColor ? - !colorRepeater.model.some(color => Qt.colorEqual(color, root.accentColor)) - : false + property bool isCustomColor: root.accentColor + && !colorRepeater.model.some(color => Qt.colorEqual(color, root.accentColor)) /* The qt binding will keep the binding alive as well as uncheck the button * we can't just disable the button because then the icon will become grey