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:
parent
4a1fa1a491
commit
8cdf691438
@ -117,11 +117,13 @@ Item{
|
|||||||
}
|
}
|
||||||
containerA.current = !containerA.current
|
containerA.current = !containerA.current
|
||||||
|
|
||||||
tools.parent = newContainer
|
if(tools) {
|
||||||
tools.visible = true
|
tools.parent = newContainer
|
||||||
tools.anchors.left = newContainer.left
|
tools.visible = true
|
||||||
tools.anchors.right = newContainer.right
|
tools.anchors.left = newContainer.left
|
||||||
tools.anchors.verticalCenter = newContainer.verticalCenter
|
tools.anchors.right = newContainer.right
|
||||||
|
tools.anchors.verticalCenter = newContainer.verticalCenter
|
||||||
|
}
|
||||||
|
|
||||||
switch (transition) {
|
switch (transition) {
|
||||||
case "push":
|
case "push":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user