Skip to content

Commit

Permalink
More better default paths
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Dec 3, 2015
1 parent 0766e5b commit 4dafbc0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/composer/qgscomposer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2998,7 +2998,7 @@ void QgsComposer::on_mActionSaveAsTemplate_triggered()
{
//show file dialog
QSettings settings;
QString lastSaveDir = settings.value( "UI/lastComposerTemplateDir", "" ).toString();
QString lastSaveDir = settings.value( "UI/lastComposerTemplateDir", QDir::homePath() ).toString();
#ifdef Q_OS_MAC
mQgis->activateWindow();
this->raise();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsrastercalcdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void QgsRasterCalcDialog::on_mButtonBox_accepted()
void QgsRasterCalcDialog::on_mOutputLayerPushButton_clicked()
{
QSettings s;
QString saveFileName = QFileDialog::getSaveFileName( 0, tr( "Enter result file" ), s.value( "/RasterCalculator/lastOutputDir" ).toString() );
QString saveFileName = QFileDialog::getSaveFileName( 0, tr( "Enter result file" ), s.value( "/RasterCalculator/lastOutputDir" ).toString(), QDir::homePath() );
if ( !saveFileName.isNull() )
{
mOutputLayerLineEdit->setText( saveFileName );
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/interpolation/qgsinterpolationdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ void QgsInterpolationDialog::on_mOutputFileButton_clicked()
{
//get last output file dir
QSettings s;
QString lastOutputDir = s.value( "/Interpolation/lastOutputDir", "" ).toString();
QString lastOutputDir = s.value( "/Interpolation/lastOutputDir", QDir::homePath() ).toString();

QString rasterFileName = QFileDialog::getSaveFileName( 0, tr( "Save interpolated raster as..." ), lastOutputDir );
if ( !rasterFileName.isEmpty() )
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/interpolation/qgstininterpolatordialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void QgsTINInterpolatorDialog::on_mTriangulationFileButton_clicked()
{
QSettings s;
//read last triangulation directory
QString lastTriangulationDir = s.value( "/Interpolation/lastTriangulationDir", "" ).toString();
QString lastTriangulationDir = s.value( "/Interpolation/lastTriangulationDir", QDir::homePath() ).toString();
QString filename = QFileDialog::getSaveFileName( 0, tr( "Save triangulation to file" ), lastTriangulationDir, "*shp" );
if ( !filename.isEmpty() )
{
Expand Down

0 comments on commit 4dafbc0

Please sign in to comment.