Show 'No configuration needed' for modules that don't need any configuration
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 26 Mar 2009 11:19:25 +0000 (11:19 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 26 Mar 2009 11:19:25 +0000 (11:19 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2439 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BModulePage.py

index 1d9e414be7ca37f06406003f75ac7cc172c4ee11..cda3e3491a0449f04b9c6f170ce12181fa1f781f 100644 (file)
@@ -98,6 +98,10 @@ class BModulePage(BWizardPage):
                             # Not defined type, rendered as a text field
                             self.pageContent.propertyTable.setItem(index, 1, QTableWidgetItem(configurations[property]["value"]))
                         index += 1
+            if self.pageContent.propertyTable.rowCount() == 0:
+                module_label = self.pageContent.moduleLabel.text()
+                module_label += "\n\nNo configuration needed."
+                self.pageContent.moduleLabel.setText(module_label)
     
     def _insertCheckBox(self, index, value):
         ## boolean property