From ffa87a93026ea3e97cf0804544588459087a7d02 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 22 Jan 2016 12:25:22 +0100 Subject: [PATCH] Fixed issue that caused crash when renaming printer CURA-670 --- plugins/AutoSave/AutoSave.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/AutoSave/AutoSave.py b/plugins/AutoSave/AutoSave.py index abe9c1c0c5..c7c069decd 100644 --- a/plugins/AutoSave/AutoSave.py +++ b/plugins/AutoSave/AutoSave.py @@ -21,7 +21,7 @@ class AutoSave(Extension): machine_manager.activeProfileChanged.connect(self._onActiveProfileChanged) machine_manager.profileNameChanged.connect(self._onProfilesChanged) machine_manager.profilesChanged.connect(self._onProfilesChanged) - machine_manager.machineInstanceNameChanged.connect(self._onInstancesChanged) + machine_manager.machineInstanceNameChanged.connect(self._onInstanceNameChanged) machine_manager.machineInstancesChanged.connect(self._onInstancesChanged) Application self._onActiveProfileChanged() @@ -56,6 +56,9 @@ class AutoSave(Extension): self._save_profiles = True self._change_timer.start() + def _onInstanceNameChanged(self, name): + self._onInstancesChanged() + def _onInstancesChanged(self): self._save_instances = True self._change_timer.start()