Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
set enabled flags of single tableitems
  • Loading branch information
signedav committed Jan 21, 2019
1 parent 6957009 commit ad9613f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
Expand Up @@ -193,6 +193,7 @@ void QgsValueRelationWidgetWrapper::setValue( const QVariant &value )
if ( item )
{
item->setCheckState( checkList.contains( item->data( Qt::UserRole ).toString() ) ? Qt::Checked : Qt::Unchecked );
item->setFlags( mEnabled ? item->flags() | Qt::ItemIsEnabled : item->flags() & ~Qt::ItemIsEnabled );
lastChangedItem = item;
}
}
Expand Down

0 comments on commit ad9613f

Please sign in to comment.