Fix warnings
Don't pass objects to lambdas that get unused. Don't connect to lambdas without specifying the target object, if an object reference is passed to the lambda.