diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2017-11-16 19:29:39 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-11-16 19:29:49 +0100 |
commit | d6504c607f2142e5e0bc8195b1d2667c3d2c8849 (patch) | |
tree | b99690fc487b50f2888cb0ae84e41bf87c2f6fd0 | |
parent | 50675bd9f1cf41f327d7a98dc3c5782be474bb04 (diff) | |
download | konversation-d6504c607f2142e5e0bc8195b1d2667c3d2c8849.tar.gz konversation-d6504c607f2142e5e0bc8195b1d2667c3d2c8849.zip |
Fix sigsev in setNickOffline
Thanks to Vilém Maršík for the original patch
This resolves Bug 2840
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 3a934bd34376afdc729543d42820e5d99bbd8c19)
-rw-r--r-- | konversation/src/server.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/konversation/src/server.cpp b/konversation/src/server.cpp index ed37f87..55712e2 100644 --- a/konversation/src/server.cpp +++ b/konversation/src/server.cpp @@ -2326,9 +2326,8 @@ bool Server::setNickOffline(const TQString& nickname) { TQString lcNickname = nickname.lower(); NickInfoPtr nickInfo = getNickInfo(lcNickname); - bool wasOnline = nickInfo->getPrintedOnline(); - if (nickInfo && wasOnline) + if (nickInfo && nickInfo->getPrintedOnline()) { // Delete from query list, if present. if (m_queryNicks.contains(lcNickname)) m_queryNicks.remove(lcNickname); |