From fcfe8c851727123e21424350ad3ec76babed134f Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 6 Feb 2015 20:46:14 +0100 Subject: [PATCH] quick frontend(quick widgets): fixed bad condition test in previous commit --- frontends/src/quick_frontend/quick_widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/src/quick_frontend/quick_widgets.py b/frontends/src/quick_frontend/quick_widgets.py index e0f39aec..5cc9b9e9 100644 --- a/frontends/src/quick_frontend/quick_widgets.py +++ b/frontends/src/quick_frontend/quick_widgets.py @@ -176,7 +176,7 @@ class QuickWidgetsManager(object): # 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