changeset 1459:8eecaca2a125

Fix bug when renaming component
author Thinker K.F. Li <thinker@codemud.net>
date Sat, 16 Apr 2011 23:29:37 +0800
parents 59b90d7fcf57
children 75ca2a66c08d
files pyink/domview.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/domview.py	Sat Apr 16 22:30:40 2011 +0800
+++ b/pyink/domview.py	Sat Apr 16 23:29:37 2011 +0800
@@ -540,6 +540,8 @@
     def rename_component(self, comp_name, new_name):
         comp = self._get_component(comp_name)
         comp.rename(new_name)
+        self._comp_names.remove(comp_name)
+        self._comp_names.add(new_name)
         pass
     
     def get_component_group(self, comp_name):