summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-09 17:40:17 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-09 17:40:17 +0000
commit79ef51422c7fa9cc9867355b1518ec6ce7be52c2 (patch)
treebfba2acb2a03fc4bc690a86208ef871ab7c37de9 /src
parent9e5c37585e70570767fa9c20750b22483d9882cf (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/chat/chat_svc.cpp5
1 files changed, 3 insertions, 2 deletions
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);