forked from qt-creator/qt-creator
Fix crash for reseting a property
Task-Number: BAUHAUS-606
(cherry picked from commit 212afcfa92
)
This commit is contained in:
@@ -296,6 +296,7 @@ void QmlPropertyChangesObject::removeActionForProperty(const QString &propertyNa
|
||||
actionIterator.remove();
|
||||
}
|
||||
|
||||
if (statePrivate()) {
|
||||
QMutableListIterator<QDeclarativeSimpleAction> simpleActionIterator(statePrivate()->revertList);
|
||||
while (simpleActionIterator.hasNext()) {
|
||||
QDeclarativeSimpleAction &qmlSimpleAction = simpleActionIterator.next();
|
||||
@@ -304,6 +305,7 @@ void QmlPropertyChangesObject::removeActionForProperty(const QString &propertyNa
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool QmlPropertyChangesObject::isActive() const
|
||||
{
|
||||
|
Reference in New Issue
Block a user