Skip to content
Permalink
Browse files

Copy! References in lambdas are dangerous

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 2, 2018
1 parent fd40042 commit ab7b45704cd2799dffc5943f6b5cf95561fb667e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsapplayertreeviewmenuprovider.cpp
@@ -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 );
} );

0 comments on commit ab7b457

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