summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-02-04 16:56:00 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-15 12:12:37 +0000
commit2c5ad4059ec504f8df481dbcd52210ae91544dbb (patch)
tree7f3be67799cca83e8ab14d729a5001459909bcc0 /bitbake
parent0e2ee5bd454afd54f9194735a5cec7267c54c084 (diff)
downloadpoky-2c5ad4059ec504f8df481dbcd52210ae91544dbb.tar.gz
poky-2c5ad4059ec504f8df481dbcd52210ae91544dbb.tar.bz2
poky-2c5ad4059ec504f8df481dbcd52210ae91544dbb.zip
bitbake: hob: remove parsing warnings when machine is changed
When the machine is changed, the warnings list is emptied and the warnings bar is hidden. [YOCTO #3830] (Bitbake rev: 8e43da7798a98988f7da3f7c424e8f9e5eac2010) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
index df7a017049..956f5ced84 100644
--- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
+++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
@@ -173,6 +173,11 @@ class ImageConfigurationPage (HobPage):
return warnings_bar
+ def disable_warnings_bar(self):
+ if self.builder.parsing_warnings:
+ self.warnings_bar.hide_all()
+ self.builder.parsing_warnings = []
+
def create_config_machine(self):
self.machine_title = gtk.Label()
self.machine_title.set_alignment(0.0, 0.5)
@@ -319,6 +324,7 @@ class ImageConfigurationPage (HobPage):
self.builder.populate_recipe_package_info_async()
def update_machine_combo(self):
+ self.disable_warnings_bar()
all_machines = [self.__dummy_machine__] + self.builder.parameters.all_machines
model = self.machine_combo.get_model()
@@ -328,6 +334,7 @@ class ImageConfigurationPage (HobPage):
self.machine_combo.set_active(0)
def switch_machine_combo(self):
+ self.disable_warnings_bar()
self.machine_combo_changed_by_manual = False
model = self.machine_combo.get_model()
active = 0