diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-06-18 16:05:19 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-06-18 16:05:19 (GMT) |
commit | b8722e62394edb3c5e91e8195b01985b60389d86 (patch) | |
tree | d6f024c96acf562b5e713a5f7cc224a4bbd4c049 /downloadmanager.py | |
parent | b4fecef2dd4931d27053910cefeb33fa0468bc16 (diff) |
Fixes #1282.
Diffstat (limited to 'downloadmanager.py')
-rw-r--r-- | downloadmanager.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/downloadmanager.py b/downloadmanager.py index 0451c77..37bdf34 100644 --- a/downloadmanager.py +++ b/downloadmanager.py @@ -147,6 +147,11 @@ class Download: self._mime_type, 'file://' + self._target_file.path.encode('utf8'), on_disk = True) + # Also add the 'text/uri-list' target for the same file path. + cb_service.add_object_format(self._cb_object_id, + 'text/uri-list', + 'file://' + self._target_file.path.encode('utf8'), + on_disk = True) components.registrar.registerFactory('{23c51569-e9a1-4a92-adeb-3723db82ef7c}"', 'Sugar Download', |