Skip to content
Permalink
Browse files

[bugfix] Homogenize the vector and raster dialog titles

Fixes #18084
  • Loading branch information
elpaso committed Feb 14, 2018
1 parent 543e4f0 commit a5246734f23119bad94bac1537e6fb4d16ec0430
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 a524673

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