Prevent a traceback when dragging a file over a groupchat. Fix #4142.

This commit is contained in:
Julien Pivotto 2008-08-08 08:59:31 +00:00
parent 9d48c69709
commit 72e4147591
1 changed files with 1 additions and 1 deletions

View File

@ -1777,7 +1777,7 @@ class GroupchatControl(ChatControlBase):
# Invite contact to groupchat
treeview = gajim.interface.roster.tree
model = treeview.get_model()
if not selection.data:
if not selection.data or target_type == 80:
return
data = selection.data
path = treeview.get_selection().get_selected_rows()[1][0]