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() } } }
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 { onCompleted: pageStack. push(page1)
width: units.gu(40)
height: units.gu(60)
Component.
PageStack {
id: pageStack
}
Page {
anchors. centerIn: parent
onClicked: pageStack. push(page2)
id: page1
title: "one"
Button {
text: "next"
}
}
Page {
id: page2
title: "two"
visible: false
}
}
}