Comment 6 for bug 1495408

Revision history for this message
Tim Peeters (tpeeters) wrote :

Bug can be reproduced by running the qml code below, clicking the 'next' button, and then clicking the back button in the header:

import QtQuick 2.4
import Ubuntu.Components 1.2

MainView {
    width: units.gu(40)
    height: units.gu(60)
    Component.onCompleted: pageStack.push(page1)

    PageStack {
        id: pageStack
    }

    Page {
        id: page1
        title: "one"
        Button {
            anchors.centerIn: parent
            text: "next"
            onClicked: pageStack.push(page2)
        }
    }
    Page {
        id: page2
        title: "two"
        visible: false

        head.backAction: Action {
            iconName: "back"
            onTriggered: pageStack.pop()
        }
    }
}