Skip to content

Commit

Permalink
[rastercalc] enable Ok button only when expression and output are set (
Browse files Browse the repository at this point in the history
…fix #30420)
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Apr 24, 2020
1 parent e2078a7 commit be15452
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsrastercalcdialog.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit be15452

Please sign in to comment.