Cast filepath to python string

This commit is contained in:
Tomas Raila 2018-01-25 11:35:09 +02:00
parent 3391ab632e
commit eda381e437

View File

@ -888,6 +888,9 @@ class MainWindow(QMainWindow, WindowMixin):
if filePath is None: if filePath is None:
filePath = self.settings.get(SETTING_FILENAME) filePath = self.settings.get(SETTING_FILENAME)
# Make sure that filePath is a regular python string, rather than QString
filePath = str(filePath)
unicodeFilePath = ustr(filePath) unicodeFilePath = ustr(filePath)
# Tzutalin 20160906 : Add file list and dock to move faster # Tzutalin 20160906 : Add file list and dock to move faster
# Highlight the file item # Highlight the file item