This prevented activties whith no share-scope set to set the window title

This commit is contained in:
Simon Schampijer 2007-09-28 16:32:22 +02:00
parent d60cc6ae39
commit b8ec83c5b8

View File

@ -288,15 +288,11 @@ class Activity(Window, gtk.Container):
#del self._jobject.metadata['ctime'] #del self._jobject.metadata['ctime']
del self._jobject.metadata['mtime'] del self._jobject.metadata['mtime']
if not self._jobject.metadata.has_key('title'): self.set_title(self._jobject.metadata['title'])
self._jobject.metadata['title'] = ''
try: if self._jobject.metadata.has_key('share-scope'):
share_scope = self._jobject.metadata['share-scope'] share_scope = self._jobject.metadata['share-scope']
title = self._jobject.metadata['title']
self.set_title(title)
except KeyError:
pass
elif create_jobject: elif create_jobject:
logging.debug('Creating a jobject.') logging.debug('Creating a jobject.')
self._jobject = datastore.create() self._jobject = datastore.create()