changeset 1310:9ca93ecdeea5 frontends_multi_profiles

quick_frontend: fixes hash setting for QuickWidget
author souliane <souliane@mailoo.org>
date Fri, 06 Feb 2015 22:28:00 +0100
parents d0d5ba3b4d64
children 4895e1e092fb
files frontends/src/quick_frontend/quick_widgets.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_widgets.py	Fri Feb 06 20:46:14 2015 +0100
+++ b/frontends/src/quick_frontend/quick_widgets.py	Fri Feb 06 22:28:00 2015 +0100
@@ -195,7 +195,7 @@
                 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: