From 5542073e44247202bba71516504458575237db81 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Wed, 27 Jan 2016 16:38:30 +0100 Subject: [PATCH] Fix error on profile rename --- 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 c7c069decd..b0067513a0 100644 --- a/plugins/AutoSave/AutoSave.py +++ b/plugins/AutoSave/AutoSave.py @@ -19,7 +19,7 @@ class AutoSave(Extension): self._profile = None machine_manager.activeProfileChanged.connect(self._onActiveProfileChanged) - machine_manager.profileNameChanged.connect(self._onProfilesChanged) + machine_manager.profileNameChanged.connect(self._onProfileNameChanged) machine_manager.profilesChanged.connect(self._onProfilesChanged) machine_manager.machineInstanceNameChanged.connect(self._onInstanceNameChanged) machine_manager.machineInstancesChanged.connect(self._onInstancesChanged) @@ -52,6 +52,9 @@ class AutoSave(Extension): if self._profile: self._profile.settingValueChanged.connect(self._onSettingValueChanged) + def _onProfileNameChanged(self, name): + self._onProfilesChanged() + def _onProfilesChanged(self): self._save_profiles = True self._change_timer.start()