Skip to content

Commit 62a4301

Browse files
committed
Default to users home for project folder
1 parent 71baa45 commit 62a4301

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/qgisapp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4206,7 +4206,7 @@ void QgisApp::fileOpen()
42064206
{
42074207
// Retrieve last used project dir from persistent settings
42084208
QSettings settings;
4209-
QString lastUsedDir = settings.value( "/UI/lastProjectDir", "." ).toString();
4209+
QString lastUsedDir = settings.value( "/UI/lastProjectDir", QDir::homePath() ).toString();
42104210
QString fullPath = QFileDialog::getOpenFileName( this,
42114211
tr( "Choose a QGIS project file to open" ),
42124212
lastUsedDir,
@@ -4364,7 +4364,7 @@ bool QgisApp::fileSave()
43644364
{
43654365
// Retrieve last used project dir from persistent settings
43664366
QSettings settings;
4367-
QString lastUsedDir = settings.value( "/UI/lastProjectDir", "." ).toString();
4367+
QString lastUsedDir = settings.value( "/UI/lastProjectDir", QDir::homePath() ).toString();
43684368

43694369
QString path = QFileDialog::getSaveFileName(
43704370
this,
@@ -4442,7 +4442,7 @@ void QgisApp::fileSaveAs()
44424442
{
44434443
// Retrieve last used project dir from persistent settings
44444444
QSettings settings;
4445-
QString lastUsedDir = settings.value( "/UI/lastProjectDir", "." ).toString();
4445+
QString lastUsedDir = settings.value( "/UI/lastProjectDir", QDir::homePath() ).toString();
44464446

44474447
QString path = QFileDialog::getSaveFileName( this,
44484448
tr( "Choose a file name to save the QGIS project file as" ),

0 commit comments

Comments
 (0)