# HG changeset patch # User Goffi # Date 1423251974 -3600 # Node ID d0d5ba3b4d64a19f981a1e5486b215894f19db2a # Parent f079e6ed1e69d1df44161afe4ea38ec83982e178 quick frontend(quick widgets): fixed bad condition test in previous commit diff -r f079e6ed1e69 -r d0d5ba3b4d64 frontends/src/quick_frontend/quick_widgets.py --- a/frontends/src/quick_frontend/quick_widgets.py Fri Feb 06 20:43:28 2015 +0100 +++ b/frontends/src/quick_frontend/quick_widgets.py Fri Feb 06 20:46:14 2015 +0100 @@ -176,7 +176,7 @@ # the widget already exists if on_existing_widget == C.WIDGET_KEEP: pass - if on_existing_widget == C.WIDGET_RAISE: + elif on_existing_widget == C.WIDGET_RAISE: raise WidgetAlreadyExistsError(hash_) elif on_existing_widget == C.WIDGET_RECREATE: # we use getOrCreateWidget to recreate the new widget