Changing to a printer with user settings doesn't trigger keep/discard popup anymore

Fixes #2499 CURA-4384
This commit is contained in:
Jaime van Kessel 2017-10-02 13:35:19 +02:00
parent e33528538f
commit 7a85dc28d7
2 changed files with 3 additions and 2 deletions

View File

@ -818,7 +818,7 @@ UM.MainWindow
Connections
{
target: Printer
target: CuraApplication
onShowDiscardOrKeepProfileChanges:
{
discardOrKeepProfileChangesDialog.show()

View File

@ -292,7 +292,8 @@ Item
}
onValueChanged: {
if(Cura.MachineManager.activeMachine != null)
// Only change if an active machine is set and the slider is visible at all.
if(Cura.MachineManager.activeMachine != null && visible)
{
//Prevent updating during view initializing. Trigger only if the value changed by user
if(qualitySlider.value != qualityModel.activeQualityId)