Fix bug when defining project properties from LPCComposer
authorLaurent Bessard
Fri, 15 Jun 2012 18:04:17 +0200
changeset 6 8863b78144ee
parent 4 e8a0af6b89d9
child 8 73dcd03f53bb
child 9 516f661a4fc5
Fix bug when defining project properties from LPCComposer
LPCManager.py
--- a/LPCManager.py	Thu Jun 14 15:16:42 2012 +0200
+++ b/LPCManager.py	Fri Jun 15 18:04:17 2012 +0200
@@ -1880,15 +1880,13 @@
             self.CTR._Build()
         
         def SetProjectProperties(self, projectname, productname, productversion, companyname):
-            properties = self.CTR.GetProjectProperties()
-            new_properties = properties.copy()
-            new_properties["projectName"] = projectname
-            new_properties["productName"] = productname
-            new_properties["productVersion"] = productversion
-            new_properties["companyName"] = companyname
-            if new_properties != properties:
-                self.CTR.SetProjectProperties(properties=new_properties, buffer=False)
-                self.RestartTimer()
+            new_properties = {
+                "projectName": projectname,
+                "productName": productname,
+                "productVersion": productversion,
+                "companyName": companyname}
+            self.CTR.SetProjectProperties(properties=new_properties, buffer=False)
+            self.RestartTimer()
         
         def SetOnlineMode(self, mode, path=None):
             self.CTR.SetOnlineMode(mode, path)