Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-05-16 16:15:57 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-05-16 16:15:57 (GMT)
commit9a223fd6d2c87c78acf7536d0cad723de83a2b0a (patch)
treeef9aa62655d63b1e32996cee456a851ad4a645d2 /webactivity.py
parent97943414dae6ec39716d3a33591792fecf2605d6 (diff)
Avoid sending None through DBUS.
Diffstat (limited to 'webactivity.py')
-rwxr-xr-xwebactivity.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/webactivity.py b/webactivity.py
index 20b49b2..90d6e89 100755
--- a/webactivity.py
+++ b/webactivity.py
@@ -90,7 +90,10 @@ class WebActivity(activity.Activity):
def write_file(self):
session_data = self._browser.get_session()
- self.jobject['preview'] = self._browser.props.title
+ if self._browser.props.title:
+ self.jobject['preview'] = self._browser.props.title
+ else:
+ self.jobject['preview'] = ''
self.jobject['icon'] = 'theme:object-link'
f = open(self.jobject.file_path, 'w')
try: