diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-02-04 16:56:00 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-15 12:12:37 +0000 |
commit | 2c5ad4059ec504f8df481dbcd52210ae91544dbb (patch) | |
tree | 7f3be67799cca83e8ab14d729a5001459909bcc0 /bitbake/lib/bb/ui | |
parent | 0e2ee5bd454afd54f9194735a5cec7267c54c084 (diff) | |
download | poky-2c5ad4059ec504f8df481dbcd52210ae91544dbb.tar.gz |
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/lib/bb/ui')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 7 |
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): | |||
173 | 173 | ||
174 | return warnings_bar | 174 | return warnings_bar |
175 | 175 | ||
176 | def disable_warnings_bar(self): | ||
177 | if self.builder.parsing_warnings: | ||
178 | self.warnings_bar.hide_all() | ||
179 | self.builder.parsing_warnings = [] | ||
180 | |||
176 | def create_config_machine(self): | 181 | def create_config_machine(self): |
177 | self.machine_title = gtk.Label() | 182 | self.machine_title = gtk.Label() |
178 | self.machine_title.set_alignment(0.0, 0.5) | 183 | self.machine_title.set_alignment(0.0, 0.5) |
@@ -319,6 +324,7 @@ class ImageConfigurationPage (HobPage): | |||
319 | self.builder.populate_recipe_package_info_async() | 324 | self.builder.populate_recipe_package_info_async() |
320 | 325 | ||
321 | def update_machine_combo(self): | 326 | def update_machine_combo(self): |
327 | self.disable_warnings_bar() | ||
322 | all_machines = [self.__dummy_machine__] + self.builder.parameters.all_machines | 328 | all_machines = [self.__dummy_machine__] + self.builder.parameters.all_machines |
323 | 329 | ||
324 | model = self.machine_combo.get_model() | 330 | model = self.machine_combo.get_model() |
@@ -328,6 +334,7 @@ class ImageConfigurationPage (HobPage): | |||
328 | self.machine_combo.set_active(0) | 334 | self.machine_combo.set_active(0) |
329 | 335 | ||
330 | def switch_machine_combo(self): | 336 | def switch_machine_combo(self): |
337 | self.disable_warnings_bar() | ||
331 | self.machine_combo_changed_by_manual = False | 338 | self.machine_combo_changed_by_manual = False |
332 | model = self.machine_combo.get_model() | 339 | model = self.machine_combo.get_model() |
333 | active = 0 | 340 | active = 0 |