From fbec2d48b7eb477d194151e7b6ee578101a278b5 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Fri, 28 Sep 2007 14:40:15 +0000 Subject: Use document information to set the title when title is not set by the user --- diff --git a/readactivity.py b/readactivity.py index 234d0d2..2065bae 100644 --- a/readactivity.py +++ b/readactivity.py @@ -222,12 +222,12 @@ class ReadActivity(activity.Activity): self._view.set_document(self._document) self._edit_toolbar.set_document(self._document) self._read_toolbar.set_document(self._document) - title = _("Read Activity") - info = self._document.get_info() - if info and info.title: - title += ": " + info.title - self.set_title(title) - + + if not self._jobject.metadata['title_set_by_user'] == '1': + info = self._document.get_info() + if info and info.title: + self.metadata['title'] = info.title + import urllib garbage, path = urllib.splittype(filepath) garbage, path = urllib.splithost(path or "") -- cgit v0.9.1