Do not fail while closing object less activities #1714

This commit is contained in:
Aleksey Lim 2010-03-09 18:56:21 +00:00
parent 3bf70d642c
commit 6921bcd67d

View File

@ -805,7 +805,8 @@ class Activity(Window, gtk.Container):
if not self.can_close(): if not self.can_close():
return return
if skip_save or self.metadata.get('title_set_by_user', '0') == '1': if skip_save or self._jobject is None or \
self.metadata.get('title_set_by_user', '0') == '1':
if not self._closing: if not self._closing:
if not self._prepare_close(skip_save): if not self._prepare_close(skip_save):
return return