Update the property table when filling the module tree
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 4 Sep 2009 10:35:18 +0000 (10:35 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 4 Sep 2009 10:35:18 +0000 (10:35 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2878 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BModulePage.py

index 8daa8d206e25c85bf14e058dcac57eed01c1d0b5..fac4cacd76d53c073dc2e0695a9a1dcf37996255 100644 (file)
@@ -155,7 +155,10 @@ class BModulePage(BWizardPage):
             if self.pageContent.propertyTable.rowCount() == 0:
                 module_label = self.pageContent.moduleLabel.text()
                 module_label += "\n\nNo configuration needed."
-                self.pageContent.moduleLabel.setText(module_label)
+                self.pageContent.moduleLabel.setText(module_label) 
+        else:
+            self.pageContent.moduleLabel.setText("")
+            self.pageContent.moduleLabel.setVisible(False)
 
     def dependencyCheck(self, item):
         """
@@ -249,6 +252,7 @@ class BModulePage(BWizardPage):
                     module_item.setCheckState(0, Qt.Unchecked)
             self.pageContent.moduleTree.addTopLevelItem(item)
         self.pageContent.moduleTree.sortItems(0, Qt.AscendingOrder)
+        self.fillPropertyTable()
             
     def insertCheckBox(self, index, value):
         """