mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[console] return home directory as string instead of QDir instance (fix #17106)
This commit is contained in:
parent
b26b8d9789
commit
999d93ad6e
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user