Skip to content

Commit

Permalink
[pyqgis-console] fixes #13693: fix default value in settings for the …
Browse files Browse the repository at this point in the history
…last used directory when opening a script file
  • Loading branch information
slarosa committed Oct 28, 2015
1 parent b931501 commit c866dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/console/console.py
Expand Up @@ -633,7 +633,7 @@ def openScriptFileExtEditor(self):
QDesktopServices.openUrl(QUrl.fromLocalFile(path))

def openScriptFile(self):
lastDirPath = self.settings.value("pythonConsole/lastDirPath", QDir.home())
lastDirPath = self.settings.value("pythonConsole/lastDirPath", QDir.homePath())
openFileTr = QCoreApplication.translate("PythonConsole", "Open File")
fileList = QFileDialog.getOpenFileNames(
self, openFileTr, lastDirPath, "Script file (*.py)")
Expand Down

3 comments on commit c866dcc

@NathanW2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm strange that I don't see that here.

@slarosa
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that is odd even for me. maybe the key pythonConsole/lastDirPath has already stored on your machine from previous QGIS version.

If you remove that key I guess you can reproduce the problem, isn't so?

@NathanW2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that must be it. Thanks for the quick fix. Hopefully it doesn't affect to many people.

Please sign in to comment.