Skip to content
Permalink
Browse files

Ensure context is passed with QTimer::singleShot

(cherry picked from commit 5c7f13b)
  • Loading branch information
nyalldawson committed Aug 28, 2018
1 parent 5bb7818 commit 360630623904a60730eaf6ca0d05a8fc03f65d8d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
@@ -228,7 +228,7 @@ void QgsValueRelationWidgetWrapper::setFeature( const QgsFeature &feature )
{
// This is deferred because at the time the feature is set in one widget it is not
// set in the next, which is typically the "down" in a drill-down
QTimer::singleShot( 0, [ this ]
QTimer::singleShot( 0, this, [ this ]
{
setValue( mCache.at( 0 ).key );
} );

0 comments on commit 3606306

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