From 33921a9535a9089fe18fec0e7d2f7f0a6af85dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 3 Jan 2014 11:24:23 +0100 Subject: [PATCH] [kcm-kwintabbox] Add a debug message on failed QML loading If the Layout Preview fails to load the Qml, at least show a debug message to see what's going wrong. --- kcmkwin/kwintabbox/layoutpreview.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kcmkwin/kwintabbox/layoutpreview.cpp b/kcmkwin/kwintabbox/layoutpreview.cpp index 6430bbfdc3..d0249e599f 100644 --- a/kcmkwin/kwintabbox/layoutpreview.cpp +++ b/kcmkwin/kwintabbox/layoutpreview.cpp @@ -21,6 +21,7 @@ along with this program. If not, see . #include "layoutpreview.h" #include "thumbnailitem.h" #include +#include #include #include #include @@ -45,6 +46,9 @@ LayoutPreview::LayoutPreview(const QString &path, QObject *parent) qmlRegisterType("org.kde.kwin", 2, 0, "Switcher"); qmlRegisterType(); component->loadUrl(QUrl::fromLocalFile(path)); + if (component->isError()) { + qDebug() << component->errorString(); + } QObject *item = component->create(); auto findSwitcher = [item]() -> SwitcherItem* { if (!item) {