Ensure context is passed with QTimer::singleShot

This commit is contained in:
Nyall Dawson 2018-08-28 11:57:59 +10:00
parent 2855ccbeff
commit 5c7f13b3a4

View File

@ -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 // 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 // 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 ); setValue( mCache.at( 0 ).key );
} ); } );