mirror of
https://github.com/codex-storage/deluge.git
synced 2025-03-02 12:00:44 +00:00
Fix LP#821577 : UnpicklingError when external selection dragged onto Files Tab
This commit is contained in:
parent
16bbedaf2b
commit
b4a73cabf3
@ -822,7 +822,11 @@ class FilesTab(Tab):
|
|||||||
selection.set_text(cPickle.dumps(paths))
|
selection.set_text(cPickle.dumps(paths))
|
||||||
|
|
||||||
def _on_drag_data_received_data(self, treeview, context, x, y, selection, info, etime):
|
def _on_drag_data_received_data(self, treeview, context, x, y, selection, info, etime):
|
||||||
|
try:
|
||||||
selected = cPickle.loads(selection.data)
|
selected = cPickle.loads(selection.data)
|
||||||
|
except cPickle.UnpicklingError:
|
||||||
|
log.debug("Invalid selection data: %s", selection.data)
|
||||||
|
return
|
||||||
log.debug("selection.data: %s", selected)
|
log.debug("selection.data: %s", selected)
|
||||||
drop_info = treeview.get_dest_row_at_pos(x, y)
|
drop_info = treeview.get_dest_row_at_pos(x, y)
|
||||||
model = treeview.get_model()
|
model = treeview.get_model()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user