mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 21:25:58 +08: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
@ -261,7 +261,8 @@ Item
|
|||||||
}
|
}
|
||||||
|
|
||||||
onValueChanged: {
|
onValueChanged: {
|
||||||
|
if(Cura.MachineManager.activeMachine != null)
|
||||||
|
{
|
||||||
//Prevent updating during view initializing. Trigger only if the value changed by user
|
//Prevent updating during view initializing. Trigger only if the value changed by user
|
||||||
if(qualityRowSlider.value != qualityRow.qualitySliderSelectedValue)
|
if(qualityRowSlider.value != qualityRow.qualitySliderSelectedValue)
|
||||||
{
|
{
|
||||||
@ -271,6 +272,7 @@ Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user