File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4206,7 +4206,7 @@ void QgisApp::fileOpen()
4206
4206
{
4207
4207
// Retrieve last used project dir from persistent settings
4208
4208
QSettings settings;
4209
- QString lastUsedDir = settings.value ( " /UI/lastProjectDir" , " . " ).toString ();
4209
+ QString lastUsedDir = settings.value ( " /UI/lastProjectDir" , QDir::homePath () ).toString ();
4210
4210
QString fullPath = QFileDialog::getOpenFileName ( this ,
4211
4211
tr ( " Choose a QGIS project file to open" ),
4212
4212
lastUsedDir,
@@ -4364,7 +4364,7 @@ bool QgisApp::fileSave()
4364
4364
{
4365
4365
// Retrieve last used project dir from persistent settings
4366
4366
QSettings settings;
4367
- QString lastUsedDir = settings.value ( " /UI/lastProjectDir" , " . " ).toString ();
4367
+ QString lastUsedDir = settings.value ( " /UI/lastProjectDir" , QDir::homePath () ).toString ();
4368
4368
4369
4369
QString path = QFileDialog::getSaveFileName (
4370
4370
this ,
@@ -4442,7 +4442,7 @@ void QgisApp::fileSaveAs()
4442
4442
{
4443
4443
// Retrieve last used project dir from persistent settings
4444
4444
QSettings settings;
4445
- QString lastUsedDir = settings.value ( " /UI/lastProjectDir" , " . " ).toString ();
4445
+ QString lastUsedDir = settings.value ( " /UI/lastProjectDir" , QDir::homePath () ).toString ();
4446
4446
4447
4447
QString path = QFileDialog::getSaveFileName ( this ,
4448
4448
tr ( " Choose a file name to save the QGIS project file as" ),
You can’t perform that action at this time.
0 commit comments