Do not fail while closing object less activities #1714
This commit is contained in:
parent
3bf70d642c
commit
6921bcd67d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user