diff options
author | George Hazan <george.hazan@gmail.com> | 2024-11-09 19:46:49 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-11-09 19:46:49 +0300 |
commit | 5d7141972f7edc5f0818ea2040109f555e65fcdb (patch) | |
tree | 245b19c3090ee83ac12e401682415ad9a51b95d7 /plugins/TabSRMM | |
parent | 9a4428ce1a6e76ed25e3e30d85cf119e7b437891 (diff) |
fixes #4768 (TabSRMM: глюки по следам галки автооткрытия для групчатов)
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/chat_tools.cpp | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/src/hotkeyhandler.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp index 3f8f64d774..c5ef349ef8 100644 --- a/plugins/TabSRMM/src/chat_tools.cpp +++ b/plugins/TabSRMM/src/chat_tools.cpp @@ -350,7 +350,7 @@ BOOL DoSoundsFlashPopupTrayStuff(SESSION_INFO *si, GCEVENT *gce, BOOL bHighlight if (Contact::IsReadonly(si->hContact) && iMuteMode != CHATMODE_UNMUTE)
return true;
- AutoCreateWindow(nullptr, si->hContact);
+ PostMessage(PluginConfig.g_hwndHotkeyHandler, DM_CREATECONTAINER, si->hContact, 0);
}
return true;
diff --git a/plugins/TabSRMM/src/hotkeyhandler.cpp b/plugins/TabSRMM/src/hotkeyhandler.cpp index 06360ceaba..7e8bd67b38 100644 --- a/plugins/TabSRMM/src/hotkeyhandler.cpp +++ b/plugins/TabSRMM/src/hotkeyhandler.cpp @@ -221,7 +221,7 @@ LONG_PTR CALLBACK HotkeyHandlerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP break;
case DM_CREATECONTAINER:
- if (!AutoCreateWindow(0, wParam)) {
+ if (!AutoCreateWindow(0, wParam) && lParam) {
// no window created, simply add an unread event to contact list
DB::EventInfo dbei(lParam, false);
if (dbei && !(dbei.flags & DBEF_READ)) {
|