From 4a18c4e02bbe291db8fc7c58ed565fa8afe6725f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 3 Mar 2020 21:46:35 +0300 Subject: HM_DBEVENTADDED to be delayed, instead of sending it immediately --- plugins/Scriver/src/msgs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Scriver') diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index b943a7a5f1..e62066b396 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -88,7 +88,7 @@ static int MessageEventAdded(WPARAM hContact, LPARAM lParam) if (hwnd == nullptr) hwnd = Srmm_FindWindow(hContactWnd = db_event_getContact(hDbEvent)); if (hwnd) - SendMessage(hwnd, HM_DBEVENTADDED, hContactWnd, lParam); + ::PostMessage(hwnd, HM_DBEVENTADDED, hContactWnd, lParam); DBEVENTINFO dbei = {}; db_event_get(hDbEvent, &dbei); -- cgit v1.2.3