Skip to content

Commit

Permalink
Stick to C++11 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 20, 2018
1 parent 693455b commit 4dfbb6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
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, [ this, &cache = qgis::as_const( mCache ) ]
QTimer::singleShot( 0, [ this ]
{
setValue( cache.first().key );
setValue( cache.at( 0 ).key );
} );
}
}
Expand Down

0 comments on commit 4dfbb6b

Please sign in to comment.