Skip to content
Permalink
Browse files

[rastercalc] enable Ok button only when expression and output are set (

…fix #30420)
  • Loading branch information
github-actions authored and nyalldawson committed Apr 24, 2020
1 parent bf55fc3 commit 24dc23e8765deafcb7f51ecb1ad0ea3ac132ec7c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/qgsrastercalcdialog.cpp
@@ -81,6 +81,8 @@ QgsRasterCalcDialog::QgsRasterCalcDialog( QgsRasterLayer *rasterLayer, QWidget *
mCrsSelector->setCrs( rasterLayer->crs() );
}

mButtonBox->button( QDialogButtonBox::Ok )->setEnabled( false );

//add supported output formats
insertAvailableOutputFormats();
insertAvailableRasterBands();

0 comments on commit 24dc23e

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