# HG changeset patch # User cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1237910689 0 # Node ID 45c63a6213668c13a4492015ea8250a5cf7308ab # Parent e476b6b7b2f00bfb2192f30f1c6ac6b61100493c Fix error when no object namespaces were loaded diff -r e476b6b7b2f0 -r 45c63a621366 clients/editor/plugins/objectselector.py --- a/clients/editor/plugins/objectselector.py Tue Mar 24 08:24:34 2009 +0000 +++ b/clients/editor/plugins/objectselector.py Tue Mar 24 16:04:49 2009 +0000 @@ -231,6 +231,8 @@ def fillTextList(self, objects=None): if objects is None: + if self.namespaces.selected_item is None: + return objects = self.engine.getModel().getObjects(self.namespaces.selected_item) class _ListItem: @@ -258,6 +260,8 @@ self.objects.clear() if objects is None: + if self.namespaces.selected_item is None: + return objects = self.engine.getModel().getObjects(self.namespaces.selected_item) for obj in objects: