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
1 changed files with 2 additions and 1 deletions

View File

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