Skip to content
Permalink
Browse files

[ui] fix raster save as vrt tiles groupbox hidden when on by default

  • Loading branch information
nirvn committed Jul 2, 2018
1 parent f43adf7 commit a9f253ca81971e3ddccd96264d1e06a27bc601bc
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/gui/qgsrasterlayersaveasdialog.cpp
@@ -133,8 +133,6 @@ QgsRasterLayerSaveAsDialog::QgsRasterLayerSaveAsDialog( QgsRasterLayer *rasterLa
// don't restore nodata, it needs user input
// pyramids are not necessarily built every time

mTilesGroupBox->hide();

mCrsSelector->setLayerCrs( mLayerCrs );
//default to layer CRS - see https://issues.qgis.org/issues/14209 for discussion
mCrsSelector->setCrs( mLayerCrs );
@@ -163,14 +161,17 @@ QgsRasterLayerSaveAsDialog::QgsRasterLayerSaveAsDialog( QgsRasterLayer *rasterLa

if ( mTileModeCheckBox->isChecked() )
{
mTilesGroupBox->show();
mFilename->setStorageMode( QgsFileWidget::GetDirectory );
mFilename->setDialogTitle( tr( "Select output directory" ) );
mFilename->setDialogTitle( tr( "Select Output Directory" ) );
}
else
{
mTilesGroupBox->hide();
mFilename->setStorageMode( QgsFileWidget::SaveFile );
mFilename->setDialogTitle( tr( "Save Layer As" ) );
}

mFilename->setDefaultRoot( settings.value( QStringLiteral( "UI/lastRasterFileDir" ), QDir::homePath() ).toString() );
connect( mFilename, &QgsFileWidget::fileChanged, this, [ = ]( const QString & filePath )
{
@@ -711,7 +712,7 @@ void QgsRasterLayerSaveAsDialog::mTileModeCheckBox_toggled( bool toggled )
// Show / hide tile options
mTilesGroupBox->show();
mFilename->setStorageMode( QgsFileWidget::GetDirectory );
mFilename->setDialogTitle( tr( "Select output directory" ) );
mFilename->setDialogTitle( tr( "Select Output Directory" ) );
}
else
{

0 comments on commit a9f253c

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