Misc dnd fixes.
This commit is contained in:
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user