Skip to content
Permalink
Browse files

Fix missing signal/slot connection resulting in non-woring autocomple…

…ter for value relation fields (fixes #16676).

This oneliner introduces the missing signal/slot connection, and fixes the bug.
  • Loading branch information
Frank Dekervel authored and m-kuhn committed Dec 5, 2017
1 parent 7584bf1 commit 51ec70abc08b9e524baba3a9630400681a8ba199
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
@@ -137,6 +137,8 @@ void QgsValueRelationWidgetWrapper::initWidget( QWidget *editor )
QCompleter *completer = new QCompleter( m, mLineEdit );
completer->setCaseSensitivity( Qt::CaseInsensitive );
mLineEdit->setCompleter( completer );

connect( mLineEdit, &QLineEdit::textChanged, this, static_cast<void ( QgsEditorWidgetWrapper::* )()>( &QgsEditorWidgetWrapper::valueChanged ) );
}
}

0 comments on commit 51ec70a

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