PageHeader should not have a back action if it's the first page on the stack
Bug #1565811 reported by
Michael Zanetti
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Zoltan Balogh | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Tim Peeters | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
Fix Released
|
High
|
Tim Peeters |
Bug Description
In this example, the header will have a back action. Pressing it, leaves us with an empty page stack. This is unexpected.
PageStack {
Component.
Page {
id: p1
header: PageHeader {
title: i18n.tr(
}
}
}
Related branches
lp://staging/~tpeeters/ubuntu-ui-toolkit/first-page-no-back-action
- ubuntu-sdk-build-bot: Approve (continuous-integration)
- Cris Dywan: Approve
-
Diff: 90 lines (+41/-8)2 files modifiedsrc/Ubuntu/Components/1.3/PageStack.qml (+1/-2)
tests/unit_x11/tst_components/tst_pagestack.qml (+40/-6)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Tim Peeters (tpeeters) |
importance: | Undecided → High |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → In Progress |
Changed in canonical-devices-system-image: | |
importance: | Undecided → High |
assignee: | nobody → Zoltan Balogh (bzoltan) |
milestone: | none → 11 |
Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
assignee: | nobody → Tim Peeters (tpeeters) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | New → In Progress |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Confirmed with this program:
import QtQuick 2.4
import Ubuntu.Components 1.3
MainView {
width: units.gu(50)
height: units.gu(60)
PageStack {
Component. onCompleted: push(p1)
title: i18n.tr( "untitled21" )
Page {
id: p1
header: PageHeader {
}
}
}
}
I could not reproduce the issue with the AdaptivePageLayout.