Skip to content
Permalink
Browse files

Fix raster calc dialog uses an open file dialog instead of save dialog

Fixes #18303
  • Loading branch information
nyalldawson committed Mar 1, 2018
1 parent baeaeac commit b5d9e7a7cf8f4b7c517261a6668463323e442071
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/app/qgsrastercalcdialog.cpp
@@ -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(); } );

1 comment on commit b5d9e7a

@nirvn

This comment has been minimized.

Copy link
Contributor

@nirvn nirvn commented on b5d9e7a Mar 2, 2018

@nyalldawson , my bad, thanks for fixing.

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