From 39f8477d1ca72e8579ae5edcc879f1bd25287555 Mon Sep 17 00:00:00 2001
From: duplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Date: Wed, 25 Mar 2009 11:13:18 +0000
Subject: [PATCH] Correct a bug with autoenabled configuration parameters

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2415 38d2e660-2303-0410-9eaa-f027e97ec537
---
 wizard/BModulePage.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py
index 6fbdaaa4..4c282b3a 100644
--- a/wizard/BModulePage.py
+++ b/wizard/BModulePage.py
@@ -75,13 +75,15 @@ class BModulePage(BWizardPage):
             self.pageContent.propertyTable.clear()
             if len(configuration) > 0:
                 configurations = self._projectInfoRetrieve("CONFIGURATIONS")[configuration]
-                self.pageContent.propertyTable.setRowCount(len(configurations))
+                self.pageContent.propertyTable.setRowCount(0)
                 index = 0
                 for property in configurations:
                     if "type" in configurations[property]["informations"] and configurations[property]["informations"]["type"] == "autoenabled":
                         ## Doesn't show the hidden fields
                         pass
                     else:
+                        ## Set the row count to the current index + 1
+                        self.pageContent.propertyTable.setRowCount(index + 1)
                         item = QTableWidgetItem(configurations[property]["brief"])
                         item.setData(Qt.UserRole, qvariant_converter.convertString(property))
                         self.pageContent.propertyTable.setItem(index, 0, item)
-- 
2.34.1