Skip to content

Commit ddf8cc8

Browse files
committedMay 9, 2017
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

Lines changed: 1 addition & 0 deletions
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)