mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
test to fix checkboxes in combobox
This commit is contained in:
parent
a4fc1ba280
commit
a95fedbbf0
@ -148,7 +148,7 @@ QVariant QgsMapLayerModel::data( const QModelIndex &index, int role ) const
|
||||
return layer->id();
|
||||
}
|
||||
|
||||
if ( role == Qt::CheckStateRole )
|
||||
if ( role == Qt::CheckStateRole && mItemCheckable )
|
||||
{
|
||||
QgsMapLayer* layer = static_cast<QgsMapLayer*>( index.internalPointer() );
|
||||
return mLayersChecked[layer->id()];
|
||||
|
Loading…
x
Reference in New Issue
Block a user