Browse Source

Fix warning about property id of null in Cura.qml

CURA-1585
fieldOfView 8 years ago
parent
commit
9ac5b0ecf7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/qml/Cura.qml

+ 1 - 1
resources/qml/Cura.qml

@@ -294,7 +294,7 @@ UM.MainWindow
                         id: item
                         text: model_data ? model_data.name : ""
                         checkable: true
-                        checked: Cura.MachineManager.activeQualityId == model_data.id
+                        checked: model_data != null ? Cura.MachineManager.activeQualityId == model_data.id : false
                         exclusiveGroup: profileMenuGroup
                         onTriggered: Cura.MachineManager.setActiveQuality(model_data.id)
                     }