diff --git a/src/private/dquickcontrolpalette.cpp b/src/private/dquickcontrolpalette.cpp index 62725162..cfa82e06 100644 --- a/src/private/dquickcontrolpalette.cpp +++ b/src/private/dquickcontrolpalette.cpp @@ -947,6 +947,10 @@ void DQuickControlColorSelector::updatePropertyFromName(const QByteArray &name, } else { color = getColorOf(name, m_state.data()); } + + if (!palette && !color.isValid()) + return; + m_metaObject->setValue(name, color); }