Skip to content

Commit

Permalink
Add missing context object in lambda connect
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 10, 2018
1 parent 15141d9 commit 005a7fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsapplayertreeviewmenuprovider.cpp
Expand Up @@ -251,7 +251,7 @@ QMenu *QgsAppLayerTreeViewMenuProvider::createContextMenu()
}
else
{
connect( a, &QAction::triggered, [ = ]
connect( a, &QAction::triggered, this, [ = ]
{
QgisApp::instance()->changeDataSource( layer );
} );
Expand Down

0 comments on commit 005a7fa

Please sign in to comment.