diff options
author | Robert Adam <dev@robert-adam.de> | 2021-03-26 09:15:52 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2021-03-26 09:18:24 +0300 |
commit | 7b0f6e7c27b306db5f7bfdc896f5d993eabcdfdf (patch) | |
tree | 3753ee92ec0d5c432fa5c7aee682713f9bf487db | |
parent | f8dc8b07798436dda278b172a0c62c7f8fac10d8 (diff) |
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.
-rw-r--r-- | src/mumble/TalkingUI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |