make sure to destroy the page when closed

This commit is contained in:
Marco Martin 2013-10-24 11:39:13 +02:00
parent 52b95779ad
commit d840f5ac69

View File

@ -61,6 +61,11 @@ Rectangle {
PlasmaCore.Dialog {
id: sidePanel
location: PlasmaCore.Types.LeftEdge
onVisibleChanged: {
if (!visible) {
sidePanelStack.pop(blankPage);
}
}
mainItem: PlasmaComponents.PageStack {
id: sidePanelStack
state: "closed"