Skip to content

Commit

Permalink
Disable raster band combo box for rasters without multiple bands
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 9, 2017
1 parent a32314d commit ddf8cc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/raster/qgsrasterbandcombobox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ void QgsRasterBandComboBox::setLayer( QgsMapLayer *layer )
}
}
}
setEnabled( count() > 1 );

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

0 comments on commit ddf8cc8

Please sign in to comment.