Fix layer height slider update issue

CURA-4758
This commit is contained in:
Lipu Fei 2018-01-05 11:53:38 +01:00
parent 47ba8b098c
commit 65e8762546

View file

@ -70,6 +70,18 @@ Item
onActiveVariantChanged: qualityModel.update()
}
Connections {
target: base
onVisibleChanged:
{
// update needs to be called when the widgets are visible, otherwise the step width calculation
// will fail because the width of an invisible item is 0.
if (visible) {
qualityModel.update();
}
}
}
ListModel
{
id: qualityModel