mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Use setCurrentIndex instead of direct assignment
This should prevent the binding from breaking and hopefully the segfault CURA-5876
This commit is contained in:
parent
780e5e1691
commit
a62da4e523
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ Item
|
|||
target: repeater.model
|
||||
onModelChanged:
|
||||
{
|
||||
tabBar.currentIndex = Math.max(Cura.ExtruderManager.activeExtruderIndex, 0)
|
||||
tabBar.setCurrentIndex(Cura.ExtruderManager.activeExtruderIndex)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue