From 5e29c61fb774e602ce4fd31568cd13dee292213f Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 23 Oct 2013 13:34:33 +0200 Subject: [PATCH] use a Loader --- src/shell/qmlpackages/desktop/contents/views/Desktop.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shell/qmlpackages/desktop/contents/views/Desktop.qml b/src/shell/qmlpackages/desktop/contents/views/Desktop.qml index 6221119e8..28bec3530 100644 --- a/src/shell/qmlpackages/desktop/contents/views/Desktop.qml +++ b/src/shell/qmlpackages/desktop/contents/views/Desktop.qml @@ -34,10 +34,10 @@ Rectangle { console.log("Activity manger toggled"); if (sidePanel.visible) { - sidePanelStack.pop(); + sidePanelStack.source = ''; sidePanel.visible = false; } else { - sidePanelStack.push(Qt.resolvedUrl("../activityswitcher/ActivitySwitcher.qml")) + sidePanelStack.source = Qt.resolvedUrl("../activityswitcher/ActivitySwitcher.qml"); sidePanel.visible = true; sidePanel.height = containment.availableScreenRegion(containment.screen)[0].height; } @@ -46,7 +46,7 @@ Rectangle { PlasmaCore.Dialog { id: sidePanel location: PlasmaCore.Types.LeftEdge - mainItem: PlasmaComponents.PageStack { + mainItem: Loader { id: sidePanelStack width: 250 height: 500