Skip to content

Commit

Permalink
Use const cache
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 19, 2018
1 parent c5825aa commit 693455b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
} );
}
}
Expand Down

0 comments on commit 693455b

Please sign in to comment.