From 5a9aa3c440fdd777654ced11d1cd029c1a34c8f8 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 16 Sep 2015 13:35:55 +0200 Subject: [PATCH] delaying the loading of the sliding panel seems to avoid some crashes FIXME --- containments/taskpanel/package/contents/ui/main.qml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/containments/taskpanel/package/contents/ui/main.qml b/containments/taskpanel/package/contents/ui/main.qml index 414448db..afea3e85 100644 --- a/containments/taskpanel/package/contents/ui/main.qml +++ b/containments/taskpanel/package/contents/ui/main.qml @@ -31,9 +31,18 @@ PlasmaCore.ColorScope { height: 480 colorGroup: PlasmaCore.Theme.ComplementaryColorGroup - TaskSwitcher { - id: taskSwitcher + + property QtObject taskSwitcher: taskSwitcherLoader.item ? taskSwitcherLoader.item : null + Loader { + id: taskSwitcherLoader } + //FIXME: why it crashes on startup if TaskSwitcher is loaded immediately? + Timer { + running: true + interval: 200 + onTriggered: taskSwitcherLoader.source = Qt.resolvedUrl("TaskSwitcher.qml") + } + MouseArea { id: mainMouseArea anchors.fill: parent