Skip to content

Commit

Permalink
Copy! References in lambdas are dangerous
Browse files Browse the repository at this point in the history
Note to self: repeat 3 times:

Copy! References in lambdas are dangerous
Copy! References in lambdas are dangerous
Copy! References in lambdas are dangerous
  • Loading branch information
elpaso committed Nov 5, 2018
1 parent fd40042 commit ab7b457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsapplayertreeviewmenuprovider.cpp
Expand Up @@ -204,7 +204,7 @@ QMenu *QgsAppLayerTreeViewMenuProvider::createContextMenu()
{

QAction *a = new QAction( tr( "Change data source" ), menu );
connect( a, &QAction::triggered, [ & ]
connect( a, &QAction::triggered, [ = ]
{
QgisApp::instance()->changeDataSource( layer );
} );
Expand Down

0 comments on commit ab7b457

Please sign in to comment.