Mercurial > libervia-backend
changeset 1309:d0d5ba3b4d64 frontends_multi_profiles
quick frontend(quick widgets): fixed bad condition test in previous commit
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 06 Feb 2015 20:46:14 +0100 |
parents | f079e6ed1e69 |
children | 9ca93ecdeea5 a8d7500090f6 |
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: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