From 0183616b8f1af34da765dced9e0d313798284e3d Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 22 Sep 2017 12:48:05 +0200 Subject: [PATCH] Only switch profiles with slider if there is an added machine Otherwise we crash and burn. Contributes to issue CURA-4357. --- resources/qml/SidebarSimple.qml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/resources/qml/SidebarSimple.qml b/resources/qml/SidebarSimple.qml index c91c1fcb93..cb6a0f2643 100644 --- a/resources/qml/SidebarSimple.qml +++ b/resources/qml/SidebarSimple.qml @@ -261,12 +261,14 @@ Item } onValueChanged: { - - //Prevent updating during view initializing. Trigger only if the value changed by user - if(qualityRowSlider.value != qualityRow.qualitySliderSelectedValue) + if(Cura.MachineManager.activeMachine != null) { - //start updating with short delay - qualitySliderChangeTimer.start(); + //Prevent updating during view initializing. Trigger only if the value changed by user + if(qualityRowSlider.value != qualityRow.qualitySliderSelectedValue) + { + //start updating with short delay + qualitySliderChangeTimer.start(); + } } } }