Commit b52f3cb2 authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

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

Task-Number: BAUHAUS-666
Reviewed-by: kkoehne
parent 2816ccbd
......@@ -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();
......
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