mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-11 16:00:47 -07:00
Prevent infinite recursion in material page if it could not be found
This commit is contained in:
parent
987ccd28ba
commit
cadc145008
2 changed files with 8 additions and 5 deletions
|
|
@ -59,6 +59,8 @@ Item
|
|||
onCurrentItemChanged:
|
||||
{
|
||||
forceActiveFocus()
|
||||
if(materialDetailsPanel.currentItem != currentItem)
|
||||
{
|
||||
materialDetailsPanel.currentItem = currentItem
|
||||
// CURA-6679 If the current item is gone after the model update, reset the current item to the active material.
|
||||
if (currentItem == null)
|
||||
|
|
@ -66,6 +68,7 @@ Item
|
|||
resetExpandedActiveMaterial()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Main layout
|
||||
Label
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ TabView
|
|||
property QtObject properties
|
||||
property var currentMaterialNode: null
|
||||
|
||||
property bool editingEnabled: false;
|
||||
property bool editingEnabled: false
|
||||
property string currency: UM.Preferences.getValue("cura/currency") ? UM.Preferences.getValue("cura/currency") : "€"
|
||||
property real firstColumnWidth: (width * 0.50) | 0
|
||||
property real secondColumnWidth: (width * 0.40) | 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue