Fix unsafe lambda usage
Closed, ResolvedPublic


Using QObject::connect(const QObject*, PointerToMemberFunction, Functor) -
is unsafe if this might be destroyed before the sender
like in;f6035945303426bc1fee6c58dc2916688fe0cbe6$98.

Fix it by using QObject::connect(const QObject, PointerToMemberFunction, const QObject*, Functor , Qt::ConnectionType) -,
passing this as the context argument.

abika added a subscriber: abika.Mar 16 2017, 11:53 AM

Thanks for pointing this out! It's my code so I will fix it right away.

abika closed this task as Resolved.Mar 16 2017, 12:06 PM
abika claimed this task.

Done with 5a26343a.

That was fast - thanks!