Hopefully fix error when adding file in Unicode non-media directory (#135)

This commit is contained in:
Etoh 2017-10-12 12:36:15 +01:00 committed by alby128
parent cf1e739a48
commit bbb2a1c8b2

View File

@ -1845,5 +1845,6 @@ class FileSwitchManager(object):
return
if self.isDirectoryInList(directoryToFind, self.mediaDirectories):
return
directoryToFind = unicode(directoryToFind)
self._client.ui.showErrorMessage(getMessage("added-file-not-in-media-directory-error").format(directoryToFind))
self.mediaDirectoriesNotFound.append(directoryToFind)