Mercurial > libervia-backend
diff sat_frontends/quick_frontend/quick_widgets.py @ 2888:e3803ae89fbc
quick_frontend (widgets): fixed crash on getWidgets when target doesn't correspond to any widget
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 07 Apr 2019 15:04:28 +0200 |
parents | ef65dbce313b |
children | ab2696e34d29 |
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_widgets.py Sat Apr 06 19:05:58 2019 +0200 +++ b/sat_frontends/quick_frontend/quick_widgets.py Sun Apr 07 15:04:28 2019 +0200 @@ -118,7 +118,7 @@ else: filter_hash = None if filter_hash is not None: - for widget in widgets_map[filter_hash]: + for widget in widgets_map.get(filter_hash, []): yield widget else: for widget_instances in widgets_map.itervalues():