Fix QML warnings

CURA-5772
This commit is contained in:
Jaime van Kessel 2018-10-15 15:32:50 +02:00
parent 2455961ac7
commit 553e29b9b8
4 changed files with 8 additions and 6 deletions

View file

@ -159,7 +159,7 @@ UM.MainWindow
}
height: 50
source: UM.Controller.activeStage.stageMenuComponent
source: UM.Controller.activeStage != null ? UM.Controller.activeStage.stageMenuComponent : ""
}
Connections
@ -252,13 +252,13 @@ UM.MainWindow
MouseArea
{
visible: UM.Controller.activeStage.mainComponent != ""
visible: parent.source != ""
anchors.fill: parent
acceptedButtons: Qt.AllButtons
onWheel: wheel.accepted = true
}
source: UM.Controller.activeStage.mainComponent
source: UM.Controller.activeStage != null ? UM.Controller.activeStage.mainComponent : ""
}
UM.MessageStack