Mercurial > fife-parpg
changeset 237:45c63a621366
Fix error when no object namespaces were loaded
author | cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 24 Mar 2009 16:04:49 +0000 |
parents | e476b6b7b2f0 |
children | d76169461729 |
files | clients/editor/plugins/objectselector.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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: