Browse Source

Fix reference to addAdditionalComponents and updateAdditionalComponents

Nobody ever tested this, I think...

Contributes to issue CURA-4741.
Ghostkeeper 7 years ago
parent
commit
5f240229f9
2 changed files with 4 additions and 4 deletions
  1. 2 2
      resources/qml/MonitorButton.qml
  2. 2 2
      resources/qml/SaveButton.qml

+ 2 - 2
resources/qml/MonitorButton.qml

@@ -199,12 +199,12 @@ Item
         }
         }
 
 
         Component.onCompleted: {
         Component.onCompleted: {
-            updateAdditionalComponents("monitorButtons")
+            buttonsRow.updateAdditionalComponents("monitorButtons")
         }
         }
 
 
         Connections {
         Connections {
             target: CuraApplication
             target: CuraApplication
-            onAdditionalComponentsChanged: updateAdditionalComponents
+            onAdditionalComponentsChanged: buttonsRow.updateAdditionalComponents
         }
         }
 
 
         function updateAdditionalComponents (areaId) {
         function updateAdditionalComponents (areaId) {

+ 2 - 2
resources/qml/SaveButton.qml

@@ -138,12 +138,12 @@ Item {
         }
         }
 
 
         Component.onCompleted: {
         Component.onCompleted: {
-            addAdditionalComponents("saveButton")
+            saveRow.addAdditionalComponents("saveButton")
         }
         }
 
 
         Connections {
         Connections {
             target: CuraApplication
             target: CuraApplication
-            onAdditionalComponentsChanged: addAdditionalComponents
+            onAdditionalComponentsChanged: saveRow.addAdditionalComponents("saveButton")
         }
         }
 
 
         function addAdditionalComponents (areaId) {
         function addAdditionalComponents (areaId) {