[Bug] Creating Material with the same name crashes FreeCAD

A forum to discuss the implementation of a good Materials system in FreeCAD
User avatar
Kunda1
Posts: 8769
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Bug] Creating Material with the same name crashes FreeCAD

Postby Kunda1 » Sat Oct 17, 2020 1:15 am

Was this issue ever fixed?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Syres
Posts: 819
Joined: Thu Aug 09, 2018 11:14 am

Re: [Bug] Creating Material with the same name crashes FreeCAD

Postby Syres » Mon Nov 09, 2020 6:13 pm

Kunda1 wrote:
Sat Oct 17, 2020 1:15 am
Was this issue ever fixed?
Nope, I can PR my quick and dirty suggestion as @vince-ice has tested it successfully but I was hoping someone with better Python skills than I could have suggested something cleaner.

OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22960 (Git)
Build type: Release
Branch: master
Hash: c5a4b01d2e4218bcc0eb6650337650a6c65ef0e4
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)