Skip to content
Permalink
Browse files

More better default paths

  • Loading branch information
NathanW2 committed Dec 3, 2015
1 parent 0766e5b commit 4dafbc0f0806d2dcbe046450940fdb06d51c5eb2
@@ -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();
@@ -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 );
@@ -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() )
@@ -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() )
{

0 comments on commit 4dafbc0

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