This prevented activties whith no share-scope set to set the window title
This commit is contained in:
parent
d60cc6ae39
commit
b8ec83c5b8
@ -288,15 +288,11 @@ class Activity(Window, gtk.Container):
|
||||
#del self._jobject.metadata['ctime']
|
||||
del self._jobject.metadata['mtime']
|
||||
|
||||
if not self._jobject.metadata.has_key('title'):
|
||||
self._jobject.metadata['title'] = ''
|
||||
self.set_title(self._jobject.metadata['title'])
|
||||
|
||||
try:
|
||||
if self._jobject.metadata.has_key('share-scope'):
|
||||
share_scope = self._jobject.metadata['share-scope']
|
||||
title = self._jobject.metadata['title']
|
||||
self.set_title(title)
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
elif create_jobject:
|
||||
logging.debug('Creating a jobject.')
|
||||
self._jobject = datastore.create()
|
||||
|
Loading…
Reference in New Issue
Block a user