From efb100c4cfb9fa25aa16bb3f336cd29e423abcf2 Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 21 Apr 2009 16:23:13 +0000 Subject: [PATCH] Resolve the codelite project generation bug git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2612 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BOutputPage.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/wizard/BOutputPage.py b/wizard/BOutputPage.py index 0720e7a2..55418d66 100644 --- a/wizard/BOutputPage.py +++ b/wizard/BOutputPage.py @@ -25,10 +25,8 @@ class BOutputPage(BWizardPage): def __init__(self): BWizardPage.__init__(self, UI_LOCATION + "/output_select.ui") self.setTitle(self.tr("Choose the project output")) - self.connectSignals() - self.setProjectInfo("OUTPUT", ["codelite"]) - ## Overloaded BWizardPage connectSignals method. ## + ## Overloaded BWizardPage methods. ## def connectSignals(self): """ @@ -36,6 +34,18 @@ class BOutputPage(BWizardPage): """ self.connect(self.pageContent.codeliteCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self.modeChecked(checked, "codelite")) + def reloadData(self): + """ + Overload of the BWizardPage reloadData method. + """ + output = [] + if self.pageContent.codeliteCheckBox.isChecked(): + output.append("codelite") + else: + if "codelite" in output: + output.remove("codelite") + self.setProjectInfo("OUTPUT", output) + #### ## Slots ## -- 2.25.1