Skip to content

Commit

Permalink
Fix missing signal/slot connection resulting in non-woring autocomple…
Browse files Browse the repository at this point in the history
…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 51ec70a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
Expand Up @@ -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 ) );
}
}

Expand Down

0 comments on commit 51ec70a

Please sign in to comment.