Commit 415b5c96 authored by Jari Karppinen's avatar Jari Karppinen

Fix errors messages due to calling setValue when currentTempTarget is undefined

parent 4de0511a
...@@ -364,15 +364,18 @@ Item { ...@@ -364,15 +364,18 @@ Item {
onRedColorChanged: { onRedColorChanged: {
home.red = redColor; home.red = redColor;
currentTempTarget.setValue(Qt.vector3d(redColor, home.green, home.blue)); if (currentTempTarget)
currentTempTarget.setValue(Qt.vector3d(redColor, home.green, home.blue));
} }
onBlueColorChanged: { onBlueColorChanged: {
home.blue = blueColor; home.blue = blueColor;
currentTempTarget.setValue(Qt.vector3d(home.red, home.green, blueColor)); if (currentTempTarget)
currentTempTarget.setValue(Qt.vector3d(home.red, home.green, blueColor));
} }
onGreenColorChanged: { onGreenColorChanged: {
home.green = greenColor; home.green = greenColor;
currentTempTarget.setValue(Qt.vector3d(home.red, greenColor, home.blue)); if (currentTempTarget)
currentTempTarget.setValue(Qt.vector3d(home.red, greenColor, home.blue));
} }
onEconomyChanged: { onEconomyChanged: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment