summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIrina Patru <irina.patru@intel.com>2014-01-21 17:59:37 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-28 00:52:57 +0000
commit1b6e11cdcb8f49da80925e2bba80873c4e9972c6 (patch)
treecc82615ddda862617cce4504e8c3d8a1203843b5
parent14e548dbb7a38cac3186b429ac2f17252c97a297 (diff)
downloadpoky-1b6e11cdcb8f49da80925e2bba80873c4e9972c6.tar.gz
bitbake: hob: unsetting busy cursor after hitting Stop button
The busy cursor would never change after pressing Stop button. It should be set after the possible return inside machine_combo_changed_cb() method. (Bitbake rev: d440d3ad4b2d99bc20e06d2d5f5e76d07864dff3) Signed-off-by: Irina Patru <irina.patru@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
index 79709d0d97..6372592d23 100644
--- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
+++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
@@ -304,14 +304,15 @@ class ImageConfigurationPage (HobPage):
304 self.builder.window.set_cursor(None) 304 self.builder.window.set_cursor(None)
305 305
306 def machine_combo_changed_cb(self, machine_combo): 306 def machine_combo_changed_cb(self, machine_combo):
307 self.builder.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))
308 self.builder.wait(0.1) #wait for combo and cursor to update
309 self.stopping = False 307 self.stopping = False
310 self.builder.parsing_warnings = [] 308 self.builder.parsing_warnings = []
311 combo_item = machine_combo.get_active_text() 309 combo_item = machine_combo.get_active_text()
312 if not combo_item or combo_item == self.__dummy_machine__: 310 if not combo_item or combo_item == self.__dummy_machine__:
313 return 311 return
314 312
313 self.builder.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))
314 self.builder.wait(0.1) #wait for combo and cursor to update
315
315 # remove __dummy_machine__ item from the store list after first user selection 316 # remove __dummy_machine__ item from the store list after first user selection
316 # because it is no longer valid 317 # because it is no longer valid
317 combo_store = machine_combo.get_model() 318 combo_store = machine_combo.get_model()