[aurorae] Print qml errors during instantiation of qml based deco

Summary:
So far we didn't know why plastik wasn't loaded. Now we get the error
messages.

Test Plan: Saw error messages while investigating failing KWin test

Reviewers: #kwin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D16753
This commit is contained in:
Martin Flöser 2018-11-08 09:24:43 +01:00
parent ee68994419
commit 80d0915cf8

View file

@ -315,6 +315,12 @@ void Decoration::init()
}
m_item = qobject_cast< QQuickItem* >(component->create(context));
if (!m_item) {
if (component->isError()) {
const auto errors = component->errors();
for (const auto &error: errors) {
qCWarning(AURORAE) << error;
}
}
return;
}
m_item->setParent(this);