Skip to content
Permalink
Browse files

Ensure context is passed with QTimer::singleShot

  • Loading branch information
nyalldawson committed Aug 28, 2018
1 parent 2855ccb commit 5c7f13b3a400798336cfb6b319eda7248174aaa5
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 5c7f13b

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