Skip to content
Permalink
Browse files

Merge pull request #3289 from dgoedkoop/valuemapsearchnull

Add handling of null value in value map to search widget
  • Loading branch information
nyalldawson committed Sep 5, 2016
2 parents 6dbdd4c + 5f39455 commit 1819b313ef11ee83c6b08d540cbd2f9b3b88cb9c
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/editorwidgets/qgsvaluemapsearchwidgetwrapper.cpp
@@ -15,6 +15,7 @@

#include "qgsvaluemapsearchwidgetwrapper.h"
#include "qgstexteditconfigdlg.h"
#include "qgsvaluemapconfigdlg.h"

#include "qgsfield.h"
#include "qgsfieldvalidator.h"
@@ -145,7 +146,8 @@ void QgsValueMapSearchWidgetWrapper::initWidget( QWidget* editor )

while ( it != cfg.constEnd() )
{
mComboBox->addItem( it.key(), it.value() );
if ( it.value() != QString( VALUEMAP_NULL_TEXT ) )
mComboBox->addItem( it.key(), it.value() );
++it;
}
connect( mComboBox, SIGNAL( currentIndexChanged( int ) ), this, SLOT( comboBoxIndexChanged( int ) ) );

0 comments on commit 1819b31

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