diff options
author | George Hazan <ghazan@miranda.im> | 2020-03-03 21:46:35 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-03-03 21:46:35 +0300 |
commit | 4a18c4e02bbe291db8fc7c58ed565fa8afe6725f (patch) | |
tree | 05dee5ca2e5e0f47b74c1806d4dd1411a011cb2a /src/core | |
parent | f45fe1fb7de629676f00809b6b3d76babd5941f8 (diff) |
HM_DBEVENTADDED to be delayed, instead of sending it immediately
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdmsg/src/globals.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/stdmsg/src/globals.cpp b/src/core/stdmsg/src/globals.cpp index 26f0a72e10..8a5db71ed9 100644 --- a/src/core/stdmsg/src/globals.cpp +++ b/src/core/stdmsg/src/globals.cpp @@ -65,12 +65,12 @@ static int dbaddedevent(WPARAM hContact, LPARAM hDbEvent) if (hContact) {
HWND h = Srmm_FindWindow(hContact);
if (h)
- SendMessage(h, HM_DBEVENTADDED, hContact, hDbEvent);
+ ::PostMessage(h, HM_DBEVENTADDED, hContact, hDbEvent);
MCONTACT hEventContact = db_event_getContact(hDbEvent);
if (hEventContact != hContact)
if ((h = Srmm_FindWindow(hEventContact)) != nullptr)
- SendMessage(h, HM_DBEVENTADDED, hEventContact, hDbEvent);
+ ::PostMessage(h, HM_DBEVENTADDED, hEventContact, hDbEvent);
}
return 0;
}
|