diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-06-14 10:27:46 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-06-14 10:27:46 (GMT) |
commit | 42e2b95379d2e3ddc8a03de1210c2957220fc72b (patch) | |
tree | 2efd76ee633aadcd1f85473c1221b02895fdd3b8 /services/clipboard | |
parent | e6e649419a9d64e13b3e991721e6f5ff8389aa27 (diff) |
Misc dnd fixes.
Diffstat (limited to 'services/clipboard')
-rw-r--r-- | services/clipboard/typeregistry.py | 2 |
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']: |