Skip to content

Commit 7939cfb

Browse files
committedOct 25, 2018
remove connection to lineeditcleared, because of already correct null value implementation there
1 parent e37f1d1 commit 7939cfb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/gui/qgsfeaturelistcombobox.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ QgsFeatureListComboBox::QgsFeatureListComboBox( QWidget *parent )
5353

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

5958
setEditable( true );
6059
setLineEdit( mLineEdit );

0 commit comments

Comments
 (0)
Please sign in to comment.