Bug when changing parameters in TargetType section in Beremiz project configuration fixed
authorlaurent
Tue, 24 May 2011 11:27:00 +0200
changeset 607 c68b662e0c2a
parent 606 780bd150ebba
child 608 375be7e2f960
Bug when changing parameters in TargetType section in Beremiz project configuration fixed
plugger.py
--- a/plugger.py	Tue May 24 00:36:08 2011 +0200
+++ b/plugger.py	Tue May 24 11:27:00 2011 +0200
@@ -852,7 +852,7 @@
         
     def SetParamsAttribute(self, path, value):
         if path.startswith("BeremizRoot.TargetType.") and self.BeremizRoot.getTargetType().getcontent() is None:
-            self.BeremizRoot.setTargetType(self.GetDefaultTarget())
+            self.BeremizRoot.setTargetType(self.GetTarget())
         return PlugTemplate.SetParamsAttribute(self, path, value)
         
     # helper func to check project path write permission