diff options
Diffstat (limited to 'src/jarabe/frame/clipboardmenu.py')
-rw-r--r-- | src/jarabe/frame/clipboardmenu.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jarabe/frame/clipboardmenu.py b/src/jarabe/frame/clipboardmenu.py index eef3861..ddba1c6 100644 --- a/src/jarabe/frame/clipboardmenu.py +++ b/src/jarabe/frame/clipboardmenu.py @@ -195,9 +195,9 @@ class ClipboardMenu(Palette): transfer_ownership = False if most_significant_mime_type == 'text/uri-list': - uris = format_.get_uris() - if len(uris) == 1 and uris[0].startswith('file://'): - parsed_url = urlparse.urlparse(uris[0]) + uri = format_.get_data() + if uri.startswith('file://'): + parsed_url = urlparse.urlparse(uri) file_path = parsed_url.path # pylint: disable=E1101 transfer_ownership = False mime_type = mime.get_for_file(file_path) @@ -207,7 +207,7 @@ class ClipboardMenu(Palette): mime_type = 'text/uri-list' else: if format_.is_on_disk(): - parsed_url = urlparse.urlparse(format_.get_uris()[0]) + parsed_url = urlparse.urlparse(format_.get_data()) file_path = parsed_url.path # pylint: disable=E1101 transfer_ownership = False mime_type = mime.get_for_file(file_path) |