fix pageParent being null the first time

This commit is contained in:
Marco Martin 2012-10-23 11:59:16 +02:00
parent 8f6eb3cc7f
commit 0b28d4cc40

View File

@ -295,6 +295,12 @@ Item {
// Performs a push enter transition.
function pushEnter(immediate, orientationChanges)
{
//FIXME: why the first time pageParent is null?
if (container.pageParent === null) {
container.pageParent = container
page.parent = container
}
if (!immediate) {
if (orientationChanges)
setState("LandscapeRight");