Normalize file path to OS standard after drag-and-drop. Fixes bug 1440571.

Fixes: https://launchpad.net/bugs/1440571
This commit is contained in:
Tomas Groth 2015-04-07 23:20:30 +01:00
parent c294ea5752
commit 6f5a139329
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class ListWidgetWithDnD(QtGui.QListWidget):
event.accept()
files = []
for url in event.mimeData().urls():
local_file = url.toLocalFile()
local_file = os.path.normpath(url.toLocalFile())
if os.path.isfile(local_file):
files.append(local_file)
elif os.path.isdir(local_file):