Need to encode filename to unicode

This commit is contained in:
Philip Ridout 2013-08-13 18:57:18 +01:00
parent d42364671e
commit 12fb5ebd46

View File

@ -46,8 +46,9 @@ class FileDialog(QtGui.QFileDialog):
files = QtGui.QFileDialog.getOpenFileNames(parent, title, path, filters) files = QtGui.QFileDialog.getOpenFileNames(parent, title, path, filters)
file_list = QtCore.QStringList() file_list = QtCore.QStringList()
for file in files: for file in files:
file = unicode(file)
if not os.path.exists(file): if not os.path.exists(file):
file = urllib.unquote(unicode(file)) file = urllib.unquote(file)
if not os.path.exists(file): if not os.path.exists(file):
QtGui.QMessageBox.information(self, QtGui.QMessageBox.information(self,
UiStrings().FNFT, UiStrings().FNFT,