Skip to content

Commit

Permalink
Convert filenames to URIs in file-drop callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
kassoulet committed Dec 27, 2014
1 parent 8faafe9 commit ecea422
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion soundconverter/ui.py
Expand Up @@ -174,7 +174,8 @@ def drag_data_received(self, widget, context, x, y, selection,
mime_id, time):
widget.stop_emission('drag_data_received')
if mime_id >= 0 and mime_id < len(self.drop_mime_types):
self.add_uris([uri.strip() for uri in selection.data.split('\n')])
uris = [filename_to_uri(uri.strip()) for uri in selection.data.split('\n')]
self.add_uris(uris)
context.finish(True, False, time)

def get_files(self):
Expand Down

0 comments on commit ecea422

Please sign in to comment.