Skip to content
Permalink
Browse files
test to fix checkboxes in combobox
  • Loading branch information
3nids committed Apr 4, 2014
1 parent a4fc1ba commit a95fedbbf00563c14a8279dd61fcd3646bb7c6e1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsmaplayermodel.cpp
@@ -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()];

0 comments on commit a95fedb

Please sign in to comment.