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) {