Skip to content

Commit 005a7fa

Browse files
committedNov 10, 2018
Add missing context object in lambda connect
1 parent 15141d9 commit 005a7fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgsapplayertreeviewmenuprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ QMenu *QgsAppLayerTreeViewMenuProvider::createContextMenu()
251251
}
252252
else
253253
{
254-
connect( a, &QAction::triggered, [ = ]
254+
connect( a, &QAction::triggered, this, [ = ]
255255
{
256256
QgisApp::instance()->changeDataSource( layer );
257257
} );

0 commit comments

Comments
 (0)
Please sign in to comment.