From 7b0f6e7c27b306db5f7bfdc896f5d993eabcdfdf Mon Sep 17 00:00:00 2001 From: Robert Adam Date: Fri, 26 Mar 2021 07:15:52 +0100 Subject: FIX(client, talking-ui): No users being added 993f640e0d16d01e2de34c9dfd1edea181414e16 fixed a crash caused by being renamed. However it did mess up a conditional check that now prevents any user from being added to the TalkingUI. This is fixed by this commit. --- src/mumble/TalkingUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mumble/TalkingUI.cpp b/src/mumble/TalkingUI.cpp index 0aec811b6..03ff76b88 100644 --- a/src/mumble/TalkingUI.cpp +++ b/src/mumble/TalkingUI.cpp @@ -380,7 +380,7 @@ TalkingUIUser *TalkingUI::findOrAddUser(const ClientUser *user) { bool isSelf = Global::get().uiSession == user->uiSession; int channelIndex = findContainer(user->cChannel->iId, ContainerType::CHANNEL); - if (channelIndex) { + if (channelIndex < 0) { qCritical("TalkingUI::findOrAddUser User's channel does not exist!"); return nullptr; } -- cgit v1.2.3