Skip to content

Commit

Permalink
Ensure context is passed with QTimer::singleShot
Browse files Browse the repository at this point in the history
(cherry picked from commit 5c7f13b)
  • Loading branch information
nyalldawson committed Aug 31, 2018
1 parent 5bb7818 commit 3606306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
Expand Up @@ -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 );
} );
Expand Down

0 comments on commit 3606306

Please sign in to comment.