mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Fix a crash in MaterialManager when the brand of the material is None.
Fix other possible cases when the type or the color are also None.
This commit is contained in:
parent
971d6306bf
commit
97a1aa1a2b
2 changed files with 11 additions and 7 deletions
|
@ -482,7 +482,7 @@ Item
|
|||
{
|
||||
var currentItem = materialsModel.getItem(materialListView.currentIndex);
|
||||
|
||||
materialProperties.name = currentItem.name;
|
||||
materialProperties.name = currentItem.name ? currentItem.name : "Unknown";
|
||||
materialProperties.guid = currentItem.guid;
|
||||
|
||||
materialProperties.brand = currentItem.brand ? currentItem.brand : "Unknown";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue