Skip to content
Permalink
Browse files
[pyqgis-console] fixes #13693: fix default value in settings for the …
…last used directory when opening a script file
  • Loading branch information
slarosa committed Oct 28, 2015
1 parent b931501 commit c866dcce8fd0a455da991f6137bae65e48f9b54e
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/console/console.py
@@ -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)")

3 comments on commit c866dcc

@NathanW2

This comment has been minimized.

Copy link
Member

@NathanW2 NathanW2 replied Oct 28, 2015

hmm strange that I don't see that here.

@slarosa

This comment has been minimized.

Copy link
Member Author

@slarosa slarosa replied Oct 28, 2015

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

This comment has been minimized.

Copy link
Member

@NathanW2 NathanW2 replied Oct 28, 2015

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

Please sign in to comment.