forked from openlp/openlp
Normalize file path to OS standard after drag-and-drop. Fixes bug 1440571.
Fixes: https://launchpad.net/bugs/1440571
This commit is contained in:
parent
c294ea5752
commit
6f5a139329
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user