# HG changeset patch # User Goffi # Date 1579280157 -3600 # Node ID 060ac43627fc6d5f5e2a7cd3976e328d9f781f9a # Parent b067736d5099e6ea398ed86b8c33d3e42b4157bc quick frontend (widgets): fixed widget creation in getOrCreateWidget: when a new widget was created, it was overwritting the exiting instances list. This patch fixes it. diff -r b067736d5099 -r 060ac43627fc sat_frontends/quick_frontend/quick_widgets.py --- a/sat_frontends/quick_frontend/quick_widgets.py Fri Jan 17 15:27:39 2020 +0100 +++ b/sat_frontends/quick_frontend/quick_widgets.py Fri Jan 17 17:55:57 2020 +0100 @@ -225,7 +225,7 @@ # we need to create a new widget log.debug("Creating new widget for target {} {}".format(target, cls)) widget = cls(*_args, **_kwargs) - widgets_map[hash_] = [widget] + widgets_map.setdefault(hash_, []).append(widget) if on_new_widget == C.WIDGET_NEW: self.host.newWidget(widget)