mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-23 10:51:16 -07:00
Only switch profiles with slider if there is an added machine
Otherwise we crash and burn. Contributes to issue CURA-4357.
This commit is contained in:
parent
261089eed3
commit
0183616b8f
1 changed files with 7 additions and 5 deletions
|
|
@ -261,7 +261,8 @@ Item
|
|||
}
|
||||
|
||||
onValueChanged: {
|
||||
|
||||
if(Cura.MachineManager.activeMachine != null)
|
||||
{
|
||||
//Prevent updating during view initializing. Trigger only if the value changed by user
|
||||
if(qualityRowSlider.value != qualityRow.qualitySliderSelectedValue)
|
||||
{
|
||||
|
|
@ -271,6 +272,7 @@ Item
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Text
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue