summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2017-11-16 19:29:39 +0100
committerSlávek Banko <[email protected]>2017-11-16 19:29:49 +0100
commitd6504c607f2142e5e0bc8195b1d2667c3d2c8849 (patch)
treeb99690fc487b50f2888cb0ae84e41bf87c2f6fd0
parent50675bd9f1cf41f327d7a98dc3c5782be474bb04 (diff)
downloadkonversation-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 <[email protected]> (cherry picked from commit 3a934bd34376afdc729543d42820e5d99bbd8c19)
-rw-r--r--konversation/src/server.cpp3
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);