Fixed some issues with text objects in the clipboard.

This commit is contained in:
Tomeu Vizoso
2007-09-09 15:04:26 +02:00
parent eb7ad2066c
commit 547df751a7
4 changed files with 21 additions and 4 deletions
+2 -1
View File
@@ -138,7 +138,8 @@ class DSObject(object):
activityfactory.create(bundle.get_service_name())
else:
if not self.get_activities():
if not self.get_activities() and service_name is None:
logging.warning('No activity can open this object.')
return
if service_name is None:
service_name = self.get_activities()[0].service_name