Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/XbookActivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'XbookActivity.py')
-rw-r--r--XbookActivity.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/XbookActivity.py b/XbookActivity.py
index 813c9f8..b85fc99 100644
--- a/XbookActivity.py
+++ b/XbookActivity.py
@@ -82,13 +82,14 @@ class XbookActivity(activity.Activity):
else:
# Wait for a successful join before trying to get the document
self.connect("joined", self._joined_cb)
-
- # FIXME: this should be called by activity.Activity on realize
- self.read_file()
+ else:
+ # FIXME: this should be called by activity.Activity on realize
+ self.read_file()
def read_file(self):
logging.debug('XbookActivity.read_file: ' + self.jobject.file_path)
- self._load_document('file://' + self.jobject.file_path)
+ if self.jobject.file_path:
+ self._load_document('file://' + self.jobject.file_path)
def _download_result_cb(self, getter, tempfile, suggested_name, buddy):
del self._tried_buddies