Skip to content
Permalink
Browse files

Use const cache

  • Loading branch information
m-kuhn committed Jun 19, 2018
1 parent c5825aa commit 693455b30bf53ed8b3518a629b3331f514d2d8ef
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
@@ -228,9 +228,9 @@ 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, [ = ]
QTimer::singleShot( 0, [ this, &cache = qgis::as_const( mCache ) ]
{
setValue( mCache.first().key );
setValue( cache.first().key );
} );
}
}

0 comments on commit 693455b

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