changeset 1995:b5ef9b2b995e 0.7-dev

quick_frontend (QuickWidget): keep on_new_widget argument when recreating a widget
author Goffi <goffi@goffi.org>
date Mon, 11 Jul 2016 19:22:40 +0200
parents a5eb6f6b8db2
children 99ec7b66daa9
files frontends/src/quick_frontend/quick_widgets.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_widgets.py	Sun Jul 10 12:26:42 2016 +0200
+++ b/frontends/src/quick_frontend/quick_widgets.py	Mon Jul 11 19:22:40 2016 +0200
@@ -209,6 +209,8 @@
                 else:
                     raise ValueError("force_hash option can't be used with on_existing_widget=RECREATE")
 
+                new_kwargs['on_new_widget'] = on_new_widget
+
                 # XXX: keep up-to-date if new special kwargs are added (i.e.: delete these keys here)
                 new_kwargs['on_existing_widget'] = C.WIDGET_RAISE
                 hash_idx = 1