Convert QStringList to Python list.

This fixes importing when the path name contains non-ascii chars.
This commit is contained in:
Samuel Mehrbrodt 2012-12-19 13:37:40 +01:00
parent 5409fa1fbc
commit c45d6915c7

View File

@ -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')