[pageStack] PageStack shows the title of a page not pushed into the stack

Bug #1317902 reported by Renato Araujo Oliveira Filho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Fix Released
Critical
Tim Peeters
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Undecided
Unassigned
Vivid
New
Undecided
Unassigned

Bug Description

Adding a page as a child of the current page cause the page stack to show the wrong title

Related branches

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :
description: updated
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
importance: Undecided → High
assignee: nobody → Tim Peeters (tpeeters)
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: New → In Progress
importance: High → Critical
Revision history for this message
Tim Peeters (tpeeters) wrote :

The example code can be simplified to fit in a single file:

import QtQuick 2.0
import Ubuntu.Components 0.1

MainView {
    width: 480
    height: 600

    PageStack {
        id: mainStack

        anchors.fill: parent
        Component.onCompleted: {
            mainStack.push(page0)
        }
        Page {
            id: page0
            title: "Page0"
            Page {
                id: page1
                anchors.fill: parent
                title: "Page1"

                Rectangle {
                    color: "green"
                    opacity: 0.5
                    anchors.fill: parent
                }
                Label {
                    text: "Page1\nPage111111111111111"
                }
            }
        }
    }
}

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

Focussing only on the title, stripping the rest, the following program shows the bug:

import QtQuick 2.0
import Ubuntu.Components 0.1

MainView {

    PageStack {
        id: mainStack
        Component.onCompleted: {
            mainStack.push(page0)
        }
        Page {
            id: page0
            title: "Page0"
            Page {
                title: "Page1"
            }
        }
    }
}

Tim Peeters (tpeeters)
tags: added: header pagestack
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/staging at revision 1048, scheduled for release in ubuntu-ui-toolkit, milestone Unknown

Changed in ubuntu-ui-toolkit:
status: In Progress → Fix Committed
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: Fix Committed → Fix Released
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.