From 90e8256f466ee2875bb28b7fe39a8796bb618f31 Mon Sep 17 00:00:00 2001 From: Jack Ha Date: Mon, 4 Dec 2017 16:30:21 +0100 Subject: [PATCH] Fix that renaming a custom material also updates the selected material. The namechanged signal was not connected at startup, so the update would only work if you change material first before renaming. Contributes to CURA-4243. --- cura/CuraApplication.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index a395329552..c051e429e2 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -728,6 +728,8 @@ class CuraApplication(QtApplication): def getMachineManager(self, *args): if self._machine_manager is None: self._machine_manager = MachineManager.createMachineManager() + # explicitly sets current material and set internal state: also fixes problem with material namechange signal + self._machine_manager.setActiveMaterial(self._machine_manager.activeMaterialId) return self._machine_manager def getExtruderManager(self, *args):