always delete the page after a pop()

Desktop / KDE / KDE Runtime - Marco Martin [gmail.com] - 14 July 2013 05:09 EDT

this makes the component behave the same as the stack in components of meego, ubutu and QtControls BUG:318336

###

diff --git a/plasma/declarativeimports/plasmacomponents/qml/PageStack.qml b/plasma/declarativeimports/plasmacomponents/qml/PageStack.qml
index 2c559a9..68eca20 100644
--- a/plasma/declarativeimports/plasmacomponents/qml/PageStack.qml
+++ b/plasma/declarativeimports/plasmacomponents/qml/PageStack.qml
@@ -525,12 +525,6 @@ Item {
if (page.status == PageStatus.Active) {
internal.setPageStatus(page, PageStatus.Inactive)
}
- if (owner != container) {
- // container is not the owner of the page - re-parent back to original owner
- page.visible = false;
- page.anchors.fill = undefined
- page.parent = owner;
- }
}

container.destroy();

934a3de always delete the page after a pop()
.../plasmacomponents/qml/PageStack.qml | 6 ------
1 file changed, 6 deletions(-)

Upstream: quickgit.kde.org


  • Share