Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove connection to lineeditcleared, because of already correct null…
… value implementation there

cherry-picked from 7939cfb
  • Loading branch information
signedav committed Oct 30, 2018
1 parent 9f6198e commit caa6340
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/qgsfeaturelistcombobox.cpp
Expand Up @@ -53,8 +53,7 @@ QgsFeatureListComboBox::QgsFeatureListComboBox( QWidget *parent )

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() ); } );
mLineEdit->setShowClearButton( true );

setEditable( true );
setLineEdit( mLineEdit );
Expand Down

0 comments on commit caa6340

Please sign in to comment.