diff options
-rw-r--r-- | plugins/TabSRMM/src/contactcache.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp index b612be884a..33a5aa1fc2 100644 --- a/plugins/TabSRMM/src/contactcache.cpp +++ b/plugins/TabSRMM/src/contactcache.cpp @@ -383,7 +383,8 @@ void CContactCache::deletedHandler() cc = &ccInvalid; m_isValid = false; if (m_dat) - ::SendMessage(m_dat->GetHwnd(), WM_CLOSE, 1, 2); + // this message must be sent async to allow a contact to rest in peace before window gets closed + ::PostMessage(m_dat->GetHwnd(), WM_CLOSE, 1, 2); releaseAlloced(); m_hContact = INVALID_CONTACT_ID; |