Skip to content
Permalink
Browse files
Disable raster band combo box for rasters without multiple bands
  • Loading branch information
nyalldawson committed May 9, 2017
1 parent a32314d commit ddf8cc8
Showing 1 changed file with 1 addition and 0 deletions.
@@ -56,6 +56,7 @@ void QgsRasterBandComboBox::setLayer( QgsMapLayer *layer )
}
}
}
setEnabled( count() > 1 );

if ( count() > 0 )
setCurrentIndex( 0 );

0 comments on commit ddf8cc8

Please sign in to comment.