Don't warn when using a page without toolbar

Check if the tools are null before before using the toolbar.

REVIEW: 105803
This commit is contained in:
Aleix Pol 2012-07-31 15:03:01 +02:00
parent 4a1fa1a491
commit 8cdf691438

View File

@ -117,11 +117,13 @@ Item{
}
containerA.current = !containerA.current
if(tools) {
tools.parent = newContainer
tools.visible = true
tools.anchors.left = newContainer.left
tools.anchors.right = newContainer.right
tools.anchors.verticalCenter = newContainer.verticalCenter
}
switch (transition) {
case "push":