Skip to content

Commit 999d93a

Browse files
committedSep 12, 2017
[console] return home directory as string instead of QDir instance (fix #17106)
1 parent b26b8d9 commit 999d93a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/console/console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def saveAsScriptFile(self, index=None):
629629
index = self.tabEditorWidget.currentIndex()
630630
if not tabWidget.path:
631631
fileName = self.tabEditorWidget.tabText(index) + '.py'
632-
folder = self.settings.value("pythonConsole/lastDirPath", QDir.home())
632+
folder = self.settings.value("pythonConsole/lastDirPath", QDir.homePath())
633633
pathFileName = os.path.join(folder, fileName)
634634
fileNone = True
635635
else:

0 commit comments

Comments
 (0)
Please sign in to comment.