X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsignalproxy.h;h=60e06533e7b9fd0229aa8157f43612298447d550;hb=fce08b4580057ae5d0515f8c68ed3f54c5ddbbc2;hp=885ebe60c0ad4dcc7a202d6b2f1e3319fbcc5f49;hpb=db00831bca59a012242d1ad5fac52a20c6cd2956;p=quassel.git diff --git a/src/common/signalproxy.h b/src/common/signalproxy.h index 885ebe60..60e06533 100644 --- a/src/common/signalproxy.h +++ b/src/common/signalproxy.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -333,7 +333,7 @@ bool SignalProxy::attachSignal(const typename FunctionTraits::ClassType* // Upon signal emission, marshall the signal's arguments into a QVariantList and dispatch an RpcCall message connect(sender, signal, this, [this, signalName = std::move(name)](auto&&... args) { - this->dispatchSignal(std::move(signalName), {QVariant::fromValue(args)...}); + this->dispatchSignal(std::move(signalName), {QVariant::fromValue(args)...}); }); return true; @@ -422,7 +422,7 @@ public: qWarning() << "Cannot call slot in different thread!"; return false; } - return invokeWithArgsList(_callable, params); + return invokeWithArgsList(_callable, params) ? true : false; } private: