forked from qt-creator/qt-creator
Don't do anything if the target object is already set
Task-Number: BAUHAUS-666 Reviewed-by: kkoehne
This commit is contained in:
@@ -89,6 +89,9 @@ QObject *QmlPropertyChangesObject::targetObject() const
|
|||||||
|
|
||||||
void QmlPropertyChangesObject::setTargetObject(QObject *object)
|
void QmlPropertyChangesObject::setTargetObject(QObject *object)
|
||||||
{
|
{
|
||||||
|
if (m_targetObject.data() == object)
|
||||||
|
return;
|
||||||
|
|
||||||
QMutableListIterator<QDeclarativeAction> actionIterator(m_qmlActionList);
|
QMutableListIterator<QDeclarativeAction> actionIterator(m_qmlActionList);
|
||||||
while (actionIterator.hasNext()) {
|
while (actionIterator.hasNext()) {
|
||||||
QDeclarativeAction &qmlAction = actionIterator.next();
|
QDeclarativeAction &qmlAction = actionIterator.next();
|
||||||
|
|||||||
Reference in New Issue
Block a user