From 72e41475916691122aa3324d97166a74ae9f2e0d Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Fri, 8 Aug 2008 08:59:31 +0000 Subject: [PATCH] Prevent a traceback when dragging a file over a groupchat. Fix #4142. --- src/groupchat_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 6a64d0b23..fc2234af5 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -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]