Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-06-14 10:27:46 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-06-14 10:27:46 (GMT)
commit42e2b95379d2e3ddc8a03de1210c2957220fc72b (patch)
tree2efd76ee633aadcd1f85473c1221b02895fdd3b8 /services
parente6e649419a9d64e13b3e991721e6f5ff8389aa27 (diff)
Misc dnd fixes.
Diffstat (limited to 'services')
-rw-r--r--services/clipboard/typeregistry.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/clipboard/typeregistry.py b/services/clipboard/typeregistry.py
index 97ac37b..93cc7e6 100644
--- a/services/clipboard/typeregistry.py
+++ b/services/clipboard/typeregistry.py
@@ -597,7 +597,7 @@ class UriListFileType(FileType):
uris = self._formats['text/uri-list'].get_data().split('\n')
if len(uris) == 1:
uri = urlparse.urlparse(uris[0])
- ext = posixpath.splitext(uri.path)[1]
+ ext = posixpath.splitext(uri[2])[1]
logging.debug(ext)
# FIXME: Bad hack, the type registry should treat text/uri-list as a special case.
if ext in ['.jpg', '.jpeg', '.gif', '.png', '.svg']: