lib/bb/ui/crumbs/hobprefs: fix erroneous save/reparse

We need to unset the reload_required variable once we've triggered a reload
so that we don't cause a reload each time the preferences dialog is shown and
dismissed, regardless of whether anything has changed.

(Bitbake rev: b3ad7acebfad3063c3364f4492f53b25bf53cf81)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Lock 2011-08-11 15:41:47 -07:00 committed by Richard Purdie
parent b829654a5a
commit 7eb72b07ef
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ class HobPrefs(gtk.Dialog):
def prefs_response_cb(self, dialog, response):
if self.reload_required:
glib.idle_add(self.handler.reload_data)
self.reload_required = False
def __init__(self, configurator, handler, curr_sdk_mach, curr_distro, pclass,
cpu_cnt, pmake, bbthread, selected_image_types, all_image_types,