Skip to content
Permalink
Browse files

Fix crash in test

  • Loading branch information
elpaso committed Jun 1, 2020
1 parent 6f9af58 commit 1d5a4a5c6bac7199422248bf8004e077c1f40ef8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/editorwidgets/qgsvaluemapwidgetwrapper.cpp
@@ -79,7 +79,7 @@ void QgsValueMapWidgetWrapper::updateValues( const QVariant &value, const QVaria

if ( mComboBox )
{
if ( mComboBox->findData( v ) == -1 )
if ( mComboBox->findData( v ) == -1 && !( v.startsWith( '(' ) && v.endsWith( ')' ) ) )
{
mComboBox->addItem( v.prepend( '(' ).append( ')' ), v );
}

0 comments on commit 1d5a4a5

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