make sure filenames are unicode
git-svn-id: http://comictagger.googlecode.com/svn/trunk@374 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
parent
c4ef4137d0
commit
0f81ce4c24
@ -161,10 +161,11 @@ class FileSelectionList(QWidget):
|
||||
|
||||
def addPathList( self, pathlist ):
|
||||
filelist = []
|
||||
filename_encoding = sys.getfilesystemencoding()
|
||||
for p in pathlist:
|
||||
# if path is a folder, walk it recursivly, and all files underneath
|
||||
if type(p) != QString:
|
||||
if type(p) == str:
|
||||
#make sure string is unicode
|
||||
filename_encoding = sys.getfilesystemencoding()
|
||||
p = p.decode(filename_encoding, 'replace')
|
||||
|
||||
if os.path.isdir( unicode(p)):
|
||||
|
Loading…
x
Reference in New Issue
Block a user