Skip to content

Commit

Permalink
pass nullRepresentation to QgsFilterLineEdit
Browse files Browse the repository at this point in the history
cherry-picked from e37f1d1
  • Loading branch information
signedav committed Oct 30, 2018
1 parent 1777769 commit 9f6198e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsfeaturelistcombobox.cpp
Expand Up @@ -51,7 +51,7 @@ QgsFeatureListComboBox::QgsFeatureListComboBox( QWidget *parent )

connect( this, static_cast<void( QgsFeatureListComboBox::* )( int )>( &QgsFeatureListComboBox::currentIndexChanged ), this, &QgsFeatureListComboBox::onCurrentIndexChanged );

mLineEdit = new QgsFilterLineEdit();
mLineEdit = new QgsFilterLineEdit( nullptr, QgsApplication::nullRepresentation() );
mLineEdit->setSelectOnFocus( true );
//set value of combo to null if delete button is pressed
connect( mLineEdit, &QgsFilterLineEdit::cleared, this, [ = ] { if ( allowNull() ) setCurrentIndex( nullIndex() ); } );
Expand Down

0 comments on commit 9f6198e

Please sign in to comment.