Skip to content

Commit ebbf276

Browse files
sync: from linuxdeepin/dtkdeclarative
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#385
1 parent ba2409d commit ebbf276

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/private/dquickcontrolpalette.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,10 @@ void DQuickControlColorSelector::updatePropertyFromName(const QByteArray &name,
947947
} else {
948948
color = getColorOf(name, m_state.data());
949949
}
950+
951+
if (!palette && !color.isValid())
952+
return;
953+
950954
m_metaObject->setValue(name, color);
951955
}
952956

0 commit comments

Comments
 (0)