Philipp Hörist pushed to branch master at gajim / gajim
Commits: 4b740f57 by wurstsalat at 2020-08-14T09:35:44+02:00 ChatControl: Don’t fail when dropping text on control
- - - - -
1 changed file:
- gajim/chat_control.py
Changes:
===================================== gajim/chat_control.py ===================================== @@ -1180,7 +1180,10 @@ class ChatControl(ChatControlBase): treeview = app.interface.roster.tree model = treeview.get_model() data = selection.get_data().decode() - path = treeview.get_selection().get_selected_rows()[1][0] + tree_selection = treeview.get_selection() + if tree_selection.count_selected_rows() == 0: + return + path = tree_selection.get_selected_rows()[1][0] iter_ = model.get_iter(path) type_ = model[iter_][2] if type_ != 'contact': # Source is not a contact
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/4b740f57b1b310ecab3e476d9d713bb88...