[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:
parent
ee68994419
commit
80d0915cf8
1 changed files with 6 additions and 0 deletions
|
@ -315,6 +315,12 @@ void Decoration::init()
|
||||||
}
|
}
|
||||||
m_item = qobject_cast< QQuickItem* >(component->create(context));
|
m_item = qobject_cast< QQuickItem* >(component->create(context));
|
||||||
if (!m_item) {
|
if (!m_item) {
|
||||||
|
if (component->isError()) {
|
||||||
|
const auto errors = component->errors();
|
||||||
|
for (const auto &error: errors) {
|
||||||
|
qCWarning(AURORAE) << error;
|
||||||
|
}
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_item->setParent(this);
|
m_item->setParent(this);
|
||||||
|
|
Loading…
Reference in a new issue