From 3a934bd34376afdc729543d42820e5d99bbd8c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 16 Nov 2017 19:29:39 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20sigsev=20in=20setNickOffline=20Thanks=20t?= =?UTF-8?q?o=20Vil=C3=A9m=20Mar=C5=A1=C3=ADk=20for=20the=20original=20patc?= =?UTF-8?q?h=20This=20resolves=20Bug=202840?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- konversation/src/server.cpp | 3 +-- 1 file changed, 1 insertion(+), 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);