Skip to content

Commit

Permalink
Default to users home for project folder
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Dec 2, 2015
1 parent 71baa45 commit 62a4301
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgisapp.cpp
Expand Up @@ -4206,7 +4206,7 @@ void QgisApp::fileOpen()
{
// Retrieve last used project dir from persistent settings
QSettings settings;
QString lastUsedDir = settings.value( "/UI/lastProjectDir", "." ).toString();
QString lastUsedDir = settings.value( "/UI/lastProjectDir", QDir::homePath() ).toString();
QString fullPath = QFileDialog::getOpenFileName( this,
tr( "Choose a QGIS project file to open" ),
lastUsedDir,
Expand Down Expand Up @@ -4364,7 +4364,7 @@ bool QgisApp::fileSave()
{
// Retrieve last used project dir from persistent settings
QSettings settings;
QString lastUsedDir = settings.value( "/UI/lastProjectDir", "." ).toString();
QString lastUsedDir = settings.value( "/UI/lastProjectDir", QDir::homePath() ).toString();

QString path = QFileDialog::getSaveFileName(
this,
Expand Down Expand Up @@ -4442,7 +4442,7 @@ void QgisApp::fileSaveAs()
{
// Retrieve last used project dir from persistent settings
QSettings settings;
QString lastUsedDir = settings.value( "/UI/lastProjectDir", "." ).toString();
QString lastUsedDir = settings.value( "/UI/lastProjectDir", QDir::homePath() ).toString();

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

2 comments on commit 62a4301

@m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented on 62a4301 Dec 2, 2015

Choose a reason for hiding this comment

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

Thanks 👍

@NathanW2
Copy link
Member Author

@NathanW2 NathanW2 commented on 62a4301 Dec 2, 2015 via email

Choose a reason for hiding this comment

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

Please sign in to comment.