From c45d6915c7d1502e62110b088e09b742c31b3254 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Wed, 19 Dec 2012 13:37:40 +0100 Subject: [PATCH] Convert QStringList to Python list. This fixes importing when the path name contains non-ascii chars. --- openlp/core/lib/mediamanageritem.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openlp/core/lib/mediamanageritem.py b/openlp/core/lib/mediamanageritem.py index 8e1107f1a..6027225e2 100644 --- a/openlp/core/lib/mediamanageritem.py +++ b/openlp/core/lib/mediamanageritem.py @@ -341,6 +341,8 @@ class MediaManagerItem(QtGui.QWidget): self, self.onNewPrompt, SettingsManager.get_last_dir(self.settingsSection), self.onNewFileMasks) + # Convert QStringList containing QStrings to a Python list containing unicode strings + files = [unicode(f) for f in files] log.info(u'New files(s) %s', unicode(files)) if files: Receiver.send_message(u'cursor_busy')