Skip to content
Permalink
Browse files

Merge pull request #6344 from elpaso/bugfix-18084-save-as-titles

[bugfix] Homogenize the vector and raster dialog titles
  • Loading branch information
elpaso committed Feb 15, 2018
2 parents 19ab0c8 + 0e14a46 commit f8f877021c3b7f6f4d18eff3831c0cc40dbc3387
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/gui/qgsnewvectorlayerdialog.cpp
  2. +2 −2 src/gui/qgsrasterlayersaveasdialog.cpp
@@ -104,7 +104,7 @@ QgsNewVectorLayerDialog::QgsNewVectorLayerDialog( QWidget *parent, Qt::WindowFla

mFileName->setStorageMode( QgsFileWidget::SaveFile );
mFileName->setFilter( QgsVectorFileWriter::filterForDriver( mFileFormatComboBox->currentData( Qt::UserRole ).toString() ) );
mFileName->setDialogTitle( tr( "Select Layer as..." ) );
mFileName->setDialogTitle( tr( "Save Layer as" ) );
mFileName->setDefaultRoot( settings.value( QStringLiteral( "UI/lastVectorFileFilterDir" ), QDir::homePath() ).toString() );
connect( mFileName, &QgsFileWidget::fileChanged, this, [ = ]
{
@@ -169,7 +169,7 @@ QgsRasterLayerSaveAsDialog::QgsRasterLayerSaveAsDialog( QgsRasterLayer *rasterLa
else
{
mFilename->setStorageMode( QgsFileWidget::SaveFile );
mFilename->setDialogTitle( tr( "Select output file" ) );
mFilename->setDialogTitle( tr( "Save Layer as…" ) );
}
mFilename->setDefaultRoot( settings.value( QStringLiteral( "UI/lastRasterFileDir" ), QDir::homePath() ).toString() );
connect( mFilename, &QgsFileWidget::fileChanged, this, [ = ]( const QString & filePath )
@@ -717,7 +717,7 @@ void QgsRasterLayerSaveAsDialog::mTileModeCheckBox_toggled( bool toggled )
{
mTilesGroupBox->hide();
mFilename->setStorageMode( QgsFileWidget::SaveFile );
mFilename->setDialogTitle( tr( "Select output file" ) );
mFilename->setDialogTitle( tr( "Save Layer as…" ) );
}
}

0 comments on commit f8f8770

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