Fix #208: closing the lasercutters/materials dialog deleted all entries

Frohe Weihnachten :-)