Commit 3cfa0c0d authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Qt: Do not send dataChanged if nothing changed

When setting the warning/error icon on a Qt version in the Qt options
page: Do not send dataChanged if the icon has not actually changed.

This fixes the selection getting broken when two Qt versions happen to
have the same displayName.

Task-number: QTCREATORBUG-16644
Change-Id: I7722fbc021388be237e59a59bd136c61f611ad52
Reviewed-by: Tobias Hunger's avatarTobias Hunger <>
parent b383eeae
......@@ -116,6 +116,8 @@ public:
void setIcon(const QIcon &icon)
if (m_icon.cacheKey() == icon.cacheKey())
m_icon = icon;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment