Don't do anything if the target object is already set

Task-Number: BAUHAUS-666
Reviewed-by: kkoehne
This commit is contained in:
Marco Bubke
2010-05-17 17:03:46 +02:00
committed by Kai Koehne
parent 2816ccbd37
commit b52f3cb274

View File

@@ -89,6 +89,9 @@ QObject *QmlPropertyChangesObject::targetObject() const
void QmlPropertyChangesObject::setTargetObject(QObject *object)
{
if (m_targetObject.data() == object)
return;
QMutableListIterator<QDeclarativeAction> actionIterator(m_qmlActionList);
while (actionIterator.hasNext()) {
QDeclarativeAction &qmlAction = actionIterator.next();