Skip to content
Permalink
Browse files

Default to users home for project folder

  • Loading branch information
NathanW2 committed Dec 2, 2015
1 parent 71baa45 commit 62a4301865486c34664691f477dc4efcd936c9d9
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/qgisapp.cpp
@@ -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,
@@ -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,
@@ -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" ),

2 comments on commit 62a4301

@m-kuhn

This comment has been minimized.

Copy link
Member

@m-kuhn m-kuhn replied Dec 2, 2015

Thanks 👍

@NathanW2

This comment has been minimized.

Copy link
Member Author

@NathanW2 NathanW2 replied Dec 2, 2015

Please sign in to comment.
You can’t perform that action at this time.