Skip to content

Commit

Permalink
Value relation: fix drill-down with completer
Browse files Browse the repository at this point in the history
Fix #55922
  • Loading branch information
elpaso authored and nyalldawson committed Jan 24, 2024
1 parent a48cfd7 commit 203479b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,17 @@ void QgsValueRelationWidgetWrapper::initWidget( QWidget *editor )
}
else if ( mLineEdit )
{
connect( mLineEdit, &QLineEdit::textChanged, this, &QgsValueRelationWidgetWrapper::emitValueChangedInternal, Qt::UniqueConnection );
if ( QgsFilterLineEdit *filterLineEdit = qobject_cast<QgsFilterLineEdit *>( editor ) )
{
connect( filterLineEdit, &QgsFilterLineEdit::valueChanged, this, [ = ]( const QString & )
{
emitValueChanged();
} );
}
else
{
connect( mLineEdit, &QLineEdit::textChanged, this, &QgsValueRelationWidgetWrapper::emitValueChangedInternal, Qt::UniqueConnection );
}
}
}

Expand Down

0 comments on commit 203479b

Please sign in to comment.