quick frontend(quick widgets): fixed bad condition test in previous commit

This commit is contained in:
Goffi 2015-02-06 20:46:14 +01:00
commit fcfe8c8517

View file

@ -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