aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcomponent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlcomponent.cpp')
-rw-r--r--src/qml/qml/qqmlcomponent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlcomponent.cpp b/src/qml/qml/qqmlcomponent.cpp
index f35c3011d3..d1aa2a09db 100644
--- a/src/qml/qml/qqmlcomponent.cpp
+++ b/src/qml/qml/qqmlcomponent.cpp
@@ -1387,13 +1387,13 @@ void QQmlComponentPrivate::setInitialProperties(QV4::ExecutionEngine *engine, QV
}
}
if (engine->hasException || !object) {
- engine->hasException = false;
+ qmlWarning(createdComponent, engine->catchExceptionAsQmlError());
continue;
}
name = engine->newString(properties.last());
object->put(name, val);
if (engine->hasException) {
- engine->hasException = false;
+ qmlWarning(createdComponent, engine->catchExceptionAsQmlError());
continue;
} else if (isTopLevelProperty) {
auto prop = removePropertyFromRequired(createdComponent, name->toQString(), requiredProperties);