mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
Fix drag n' drop in windows
This commit is contained in:
parent
520dab70d0
commit
53f6909b6e
@ -193,6 +193,9 @@ class MainWindow(component.Component):
|
||||
def on_drag_data_received_event(self, widget, drag_context, x, y, selection_data, info, timestamp):
|
||||
args = []
|
||||
for uri in selection_data.data.split():
|
||||
if deluge.common.windows_check():
|
||||
uri = uri[7:]
|
||||
uri = urllib.url2pathname(uri).strip("\r\n\x00")
|
||||
args.append(urllib.unquote(urlparse(uri).path))
|
||||
process_args(args)
|
||||
drag_context.finish(True, True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user