From 5c7f13b3a400798336cfb6b319eda7248174aaa5 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 28 Aug 2018 11:57:59 +1000 Subject: [PATCH] Ensure context is passed with QTimer::singleShot --- src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp b/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp index 0ffb42ca029..458324b702f 100644 --- a/src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp +++ b/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 ); } );