Skip to content

Commit

Permalink
Merge branch '359-settings-panel-trigger-signal-only-if-needed'
Browse files Browse the repository at this point in the history
* 359-settings-panel-trigger-signal-only-if-needed:
  ctkSettingsPanel - Trigger registered signal only if needed
  • Loading branch information
jcfr committed Aug 19, 2013
2 parents f18114d + 073ae6e commit 8156536
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Libs/Widgets/ctkSettingsPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ bool PropertyType::setValue(const QVariant& val)
{
value = QVariant(QStringList());
}
bool success = this->Object->setProperty(this->Property.toLatin1(), value);
bool success = true;
if (this->Object->property(this->Property.toLatin1()) != value)
{
success = this->Object->setProperty(this->Property.toLatin1(), value);
}
Q_ASSERT(success);
return success;
}
Expand Down

0 comments on commit 8156536

Please sign in to comment.