Skip to content
Permalink
Browse files

ValueMap widget: show unmatched items in ()

Fixes #32756
  • Loading branch information
elpaso committed May 28, 2020
1 parent 0496ce5 commit 6f9af58067a2f98314dd1e22a968f9bfae1d0875
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/editorwidgets/qgsvaluemapwidgetwrapper.cpp
@@ -78,5 +78,11 @@ void QgsValueMapWidgetWrapper::updateValues( const QVariant &value, const QVaria
v = value.toString();

if ( mComboBox )
{
if ( mComboBox->findData( v ) == -1 )
{
mComboBox->addItem( v.prepend( '(' ).append( ')' ), v );
}
mComboBox->setCurrentIndex( mComboBox->findData( v ) );
}
}

0 comments on commit 6f9af58

Please sign in to comment.
You can’t perform that action at this time.