do not DND on chat window that have no resource

This commit is contained in:
Yann Leboulanger 2005-10-12 18:59:38 +00:00
parent a03e83e21d
commit ad3d5c5944
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,8 @@ class TabbedChatWindow(chat.Chat):
def on_drag_data_received(self, widget, context, x, y, selection,
target_type, timestamp, contact):
if not contact.resource:
return
if target_type == self.TARGET_TYPE_URI_LIST:
uri = selection.data.strip()
uri_splitted = uri.split() # we may have more than one file dropped