From b8722e62394edb3c5e91e8195b01985b60389d86 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Mon, 18 Jun 2007 16:05:19 +0000 Subject: Fixes #1282. --- (limited to 'downloadmanager.py') 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', -- cgit v0.9.1