diff options
Diffstat (limited to 'bitbake/lib/bb/ui/hob.py')
-rw-r--r-- | bitbake/lib/bb/ui/hob.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py index d3442c518c..90d5c5aa90 100644 --- a/bitbake/lib/bb/ui/hob.py +++ b/bitbake/lib/bb/ui/hob.py | |||
@@ -122,6 +122,10 @@ class MainWindow (gtk.Window): | |||
122 | self.build_succeeded = False | 122 | self.build_succeeded = False |
123 | 123 | ||
124 | def image_changed_string_cb(self, model, new_image): | 124 | def image_changed_string_cb(self, model, new_image): |
125 | # disconnect the image combo's signal handler | ||
126 | if self.image_combo_id: | ||
127 | self.image_combo.disconnect(self.image_combo_id) | ||
128 | self.image_combo_id = None | ||
125 | cnt = 0 | 129 | cnt = 0 |
126 | it = self.model.images.get_iter_first() | 130 | it = self.model.images.get_iter_first() |
127 | while it: | 131 | while it: |
@@ -131,6 +135,8 @@ class MainWindow (gtk.Window): | |||
131 | break | 135 | break |
132 | it = self.model.images.iter_next(it) | 136 | it = self.model.images.iter_next(it) |
133 | cnt = cnt + 1 | 137 | cnt = cnt + 1 |
138 | # Reconnect the signal handler | ||
139 | self.image_combo_id = self.image_combo.connect("changed", self.image_changed_cb) | ||
134 | 140 | ||
135 | def image_changed_cb(self, combo): | 141 | def image_changed_cb(self, combo): |
136 | model = self.image_combo.get_model() | 142 | model = self.image_combo.get_model() |