aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Flöser <[email protected]>2018-11-08 09:24:43 +0100
committerMartin Flöser <[email protected]>2018-11-08 10:38:35 +0100
commit80d0915cf8e91c4f436a11ebe70ff6742eeffcab (patch)
tree3c2f98fcbc6dfae685f61383efbf1cfefd2e2ae2
parentee68994419a30009f507502016cb002c76e81547 (diff)
[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
-rw-r--r--plugins/kdecorations/aurorae/src/aurorae.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/kdecorations/aurorae/src/aurorae.cpp b/plugins/kdecorations/aurorae/src/aurorae.cpp
index 46e564b..f5937d9 100644
--- a/plugins/kdecorations/aurorae/src/aurorae.cpp
+++ b/plugins/kdecorations/aurorae/src/aurorae.cpp
@@ -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);