Skip to content

Commit 3606306

Browse files
committed
Ensure context is passed with QTimer::singleShot
(cherry picked from commit 5c7f13b)
1 parent 5bb7818 commit 3606306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void QgsValueRelationWidgetWrapper::setFeature( const QgsFeature &feature )
228228
{
229229
// This is deferred because at the time the feature is set in one widget it is not
230230
// set in the next, which is typically the "down" in a drill-down
231-
QTimer::singleShot( 0, [ this ]
231+
QTimer::singleShot( 0, this, [ this ]
232232
{
233233
setValue( mCache.at( 0 ).key );
234234
} );

0 commit comments

Comments
 (0)