From ead4eeda1e9667ccc6841392af5000646a3fd141 Mon Sep 17 00:00:00 2001 From: Camila Date: Tue, 5 Apr 2022 14:26:59 +0200 Subject: [PATCH] Windows fix: activityIndex was not being passed to the lambda slot function. Signed-off-by: Camila --- src/gui/tray/usermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/tray/usermodel.cpp b/src/gui/tray/usermodel.cpp index 16d3c8263..21247c0e8 100644 --- a/src/gui/tray/usermodel.cpp +++ b/src/gui/tray/usermodel.cpp @@ -797,7 +797,7 @@ void User::slotSendReplyMessage(const int activityIndex, const QString &token, c { QPointer talkReply = new TalkReply(_account.data(), this); talkReply->sendReplyMessage(token, message, replyTo); - connect(talkReply, &TalkReply::replyMessageSent, this, [&](const QString &message) { + connect(talkReply, &TalkReply::replyMessageSent, this, [&, activityIndex](const QString &message) { _activityModel->setReplyMessageSent(activityIndex, message); }); } -- 2.30.2