From 6f5a13932928c3200ea97d103d42d99f54cc1ebf Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Tue, 7 Apr 2015 23:20:30 +0100 Subject: [PATCH] Normalize file path to OS standard after drag-and-drop. Fixes bug 1440571. Fixes: https://launchpad.net/bugs/1440571 --- openlp/core/lib/listwidgetwithdnd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/core/lib/listwidgetwithdnd.py b/openlp/core/lib/listwidgetwithdnd.py index 2d5bcf6f3..4da1cf81e 100644 --- a/openlp/core/lib/listwidgetwithdnd.py +++ b/openlp/core/lib/listwidgetwithdnd.py @@ -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):