[console] return home directory as string instead of QDir instance (fix #17106)

This commit is contained in:
Alexander Bruy 2017-09-12 15:42:22 +03:00
parent b26b8d9789
commit 999d93ad6e

View File

@ -629,7 +629,7 @@ class PythonConsoleWidget(QWidget):
index = self.tabEditorWidget.currentIndex()
if not tabWidget.path:
fileName = self.tabEditorWidget.tabText(index) + '.py'
folder = self.settings.value("pythonConsole/lastDirPath", QDir.home())
folder = self.settings.value("pythonConsole/lastDirPath", QDir.homePath())
pathFileName = os.path.join(folder, fileName)
fileNone = True
else: