Use setCurrentIndex instead of direct assignment

This should prevent the binding from breaking and hopefully the segfault

CURA-5876
This commit is contained in:
Jaime van Kessel 2018-12-05 09:13:48 +01:00
parent 780e5e1691
commit a62da4e523

View file

@ -76,7 +76,7 @@ Item
target: repeater.model
onModelChanged:
{
tabBar.currentIndex = Math.max(Cura.ExtruderManager.activeExtruderIndex, 0)
tabBar.setCurrentIndex(Cura.ExtruderManager.activeExtruderIndex)
}
}
}