Skip to content

Commit ddf8cc8

Browse files
committed
Disable raster band combo box for rasters without multiple bands
1 parent a32314d commit ddf8cc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gui/raster/qgsrasterbandcombobox.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ void QgsRasterBandComboBox::setLayer( QgsMapLayer *layer )
5656
}
5757
}
5858
}
59+
setEnabled( count() > 1 );
5960

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

0 commit comments

Comments
 (0)