From 79ef51422c7fa9cc9867355b1518ec6ce7be52c2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 9 Mar 2014 17:40:17 +0000 Subject: fix for a very rare crash in chats on exit git-svn-id: http://svn.miranda-ng.org/main/trunk@8513 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/chat/chat_svc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules/chat/chat_svc.cpp') diff --git a/src/modules/chat/chat_svc.cpp b/src/modules/chat/chat_svc.cpp index a7573a4647..37fa9f3c06 100644 --- a/src/modules/chat/chat_svc.cpp +++ b/src/modules/chat/chat_svc.cpp @@ -353,9 +353,10 @@ static int DoControl(GCEVENT *gce, WPARAM wp) db_set_ts(si->hContact, si->pszModule, "StatusBar", si->ptszStatusbarText); else db_set_s(si->hContact, si->pszModule, "StatusBar", ""); + + if (ci.OnSetStatusBar) + ci.OnSetStatusBar(si); } - if (ci.OnSetStatusBar) - ci.OnSetStatusBar(si); } else if (gce->pDest->iType == GC_EVENT_ACK) { ci.SM_SendMessage(gce->pDest->ptszID, gce->pDest->pszModule, GC_ACKMESSAGE, 0, 0); -- cgit v1.2.3