summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-11-16 19:29:39 +0100
committerSlávek Banko <slavek.banko@axis.cz>2017-11-16 19:29:39 +0100
commit3a934bd34376afdc729543d42820e5d99bbd8c19 (patch)
treee6d401eaeeabb43672b8fdedbcfb14b7e87d84a8
parent6d39de70248cfbf50d161fded943e7f75e2cf4fd (diff)
downloadkonversation-3a934bd34376afdc729543d42820e5d99bbd8c19.tar.gz
konversation-3a934bd34376afdc729543d42820e5d99bbd8c19.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>
-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);