diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-09-25 09:33:28 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-09-27 08:17:27 +0000 |
commit | ff90dc8ce465221f5f0f76f55bd4cb49c22d393c (patch) | |
tree | 62fb09fc8a16e8a47450dd05d4e5750363996da8 /src/qml/qml/qqmlincubator.cpp | |
parent | 34948d35f6bf4fa4acb46e60833b3b3f9d3ace46 (diff) |
QML: Demote incubation problems to info level
If the context or object in question gets destroyed during incubation,
that is not a major problem. We just clean up the mess and continue.
Especially, failure to create a delegate for an item view is not fatal.
This routinely happens if the whole view has been dropped between
object creation and incubation.
Since 0412de08fd65c5fef9d010a68b40a256f521ef61 info and warning levels
are properly separated.
Task-number: QTBUG-49224
Change-Id: Ie59dfca8edf91b80dcf33e742766863feba9c8fa
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlincubator.cpp')
-rw-r--r-- | src/qml/qml/qqmlincubator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlincubator.cpp b/src/qml/qml/qqmlincubator.cpp index e18ce71902..39da550d63 100644 --- a/src/qml/qml/qqmlincubator.cpp +++ b/src/qml/qml/qqmlincubator.cpp @@ -282,8 +282,9 @@ void QQmlIncubatorPrivate::incubate(QQmlInstantiationInterrupt &i) if (!vmeGuard.isOK()) { QQmlError error; + error.setMessageType(QtInfoMsg); error.setUrl(compilationUnit->url()); - error.setDescription(QQmlComponent::tr("Object destroyed during incubation")); + error.setDescription(QQmlComponent::tr("Object or context destroyed during incubation")); errors << error; progress = QQmlIncubatorPrivate::Completed; |