Prevent a traceback when dragging a file over a groupchat. Fix #4142.
This commit is contained in:
parent
9d48c69709
commit
72e4147591
|
@ -1777,7 +1777,7 @@ class GroupchatControl(ChatControlBase):
|
||||||
# Invite contact to groupchat
|
# Invite contact to groupchat
|
||||||
treeview = gajim.interface.roster.tree
|
treeview = gajim.interface.roster.tree
|
||||||
model = treeview.get_model()
|
model = treeview.get_model()
|
||||||
if not selection.data:
|
if not selection.data or target_type == 80:
|
||||||
return
|
return
|
||||||
data = selection.data
|
data = selection.data
|
||||||
path = treeview.get_selection().get_selected_rows()[1][0]
|
path = treeview.get_selection().get_selected_rows()[1][0]
|
||||||
|
|
Loading…
Reference in New Issue