From 0e6dc927b3e6514e7c79be551c2228abe8d50471 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 21 Jul 2008 09:54:46 +0000 Subject: [PATCH] Fix drag n drop adding of torrents with space in filename --- deluge/ui/gtkui/mainwindow.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/mainwindow.py b/deluge/ui/gtkui/mainwindow.py index 199f358f8..8adfd24cf 100644 --- a/deluge/ui/gtkui/mainwindow.py +++ b/deluge/ui/gtkui/mainwindow.py @@ -37,6 +37,7 @@ import gtk, gtk.glade import gobject import pkg_resources from urlparse import urlparse +import urllib from deluge.ui.client import aclient as client import deluge.component as component @@ -190,8 +191,8 @@ class MainWindow(component.Component): self.config["window_height"] - self.vpaned.get_position()) def on_drag_data_received_event(self, widget, drag_context, x, y, selection_data, info, timestamp): - args = [] + args = [] for uri in selection_data.data.split(): - args.append(urlparse(uri).path) + args.append(urllib.unquote(urlparse(uri).path)) process_args(args) drag_context.finish(True, True)