quick_frontend: fixes hash setting for QuickWidget

This commit is contained in:
souliane 2015-02-06 22:28:00 +01:00
commit b1ab06ba6a

View file

@ -195,7 +195,7 @@ class QuickWidgetsManager(object):
new_kwargs['on_existing_widget'] = C.WIDGET_RAISE
hash_idx = 1
while True:
new_kwargs['force_hash'] = hash_ + "_new_instance_{}".format(hash_idx)
new_kwargs['force_hash'] = "{}_new_instance_{}".format(hash_, hash_idx)
try:
widget = self.getOrCreateWidget(class_, target, *args, **new_kwargs)
except WidgetAlreadyExistsError: