summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-08-11 15:41:47 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-12 17:48:13 +0100
commitb3ad7acebfad3063c3364f4492f53b25bf53cf81 (patch)
tree158f9929fe56743328768dac60a89dbdb0b82b1c
parent2843645755abb736220d7404dc6e853929093ff9 (diff)
downloadbitbake-b3ad7acebfad3063c3364f4492f53b25bf53cf81.tar.gz
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. Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--lib/bb/ui/crumbs/hobprefs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/ui/crumbs/hobprefs.py b/lib/bb/ui/crumbs/hobprefs.py
index 8ebfba243..014087b7f 100644
--- a/lib/bb/ui/crumbs/hobprefs.py
+++ b/lib/bb/ui/crumbs/hobprefs.py
@@ -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,