Commit 765c6c4d authored by Laurent Montel's avatar Laurent Montel 😁

Try to fix access to deleted method

parent 14b07089
......@@ -32,11 +32,13 @@ using namespace MessageViewer;
template<typename Arg, typename R, typename C>
struct InvokeWrapper {
R *receiver;
QPointer<R> receiver;
void (C::*memberFunction)(Arg);
void operator()(Arg result)
{
(receiver->*memberFunction)(result);
if (receiver) {
(receiver->*memberFunction)(result);
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment