forked from qt-creator/qt-creator
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 <tobias.hunger@qt.io>
This commit is contained in:
@@ -116,6 +116,8 @@ public:
|
||||
|
||||
void setIcon(const QIcon &icon)
|
||||
{
|
||||
if (m_icon.cacheKey() == icon.cacheKey())
|
||||
return;
|
||||
m_icon = icon;
|
||||
update();
|
||||
}
|
||||
|
Reference in New Issue
Block a user