Skip to content

Commit

Permalink
test to fix checkboxes in combobox
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Apr 4, 2014
1 parent a4fc1ba commit a95fedb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsmaplayermodel.cpp
Expand Up @@ -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()];
Expand Down

0 comments on commit a95fedb

Please sign in to comment.