Fixes a bug in which paths with non-ASCII characters prevented loading of the file properties
This commit is contained in:
parent
7c8b3d93fa
commit
6c53e6c58f
@ -1929,6 +1929,7 @@ class FileSwitchManager(object):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def notifyUserIfFileNotInMediaDirectory(self, filenameToFind, path):
|
def notifyUserIfFileNotInMediaDirectory(self, filenameToFind, path):
|
||||||
|
path = path.decode('utf-8')
|
||||||
directoryToFind = os.path.dirname(path)
|
directoryToFind = os.path.dirname(path)
|
||||||
if directoryToFind in self.mediaDirectoriesNotFound:
|
if directoryToFind in self.mediaDirectoriesNotFound:
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user