Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix raster calc dialog uses an open file dialog instead of save dialog
Fixes #18303

(cherry-picked from b5d9e7)
  • Loading branch information
nyalldawson committed Mar 6, 2018
1 parent d2bf8d0 commit 0246cd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgsrastercalcdialog.cpp
Expand Up @@ -77,6 +77,7 @@ QgsRasterCalcDialog::QgsRasterCalcDialog( QgsRasterLayer *rasterLayer, QWidget *
mExpressionTextEdit->setCurrentFont( QFontDatabase::systemFont( QFontDatabase::FixedFont ) );

QgsSettings settings;
mOutputLayer->setStorageMode( QgsFileWidget::SaveFile );
mOutputLayer->setDialogTitle( tr( "Enter result file" ) );
mOutputLayer->setDefaultRoot( settings.value( QStringLiteral( "/RasterCalculator/lastOutputDir" ), QDir::homePath() ).toString() );
connect( mOutputLayer, &QgsFileWidget::fileChanged, this, [ = ]() { setAcceptButtonState(); } );
Expand Down

0 comments on commit 0246cd6

Please sign in to comment.