Skip to content

Commit a95fedb

Browse files
committed
test to fix checkboxes in combobox
1 parent a4fc1ba commit a95fedb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgsmaplayermodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ QVariant QgsMapLayerModel::data( const QModelIndex &index, int role ) const
148148
return layer->id();
149149
}
150150

151-
if ( role == Qt::CheckStateRole )
151+
if ( role == Qt::CheckStateRole && mItemCheckable )
152152
{
153153
QgsMapLayer* layer = static_cast<QgsMapLayer*>( index.internalPointer() );
154154
return mLayersChecked[layer->id()];

0 commit comments

Comments
 (0)