diff options
author | George Hazan <george.hazan@gmail.com> | 2024-11-25 15:48:55 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-11-25 15:48:55 +0300 |
commit | ce389c4b8fd79d1c8e158d1df0a15d6bce9119b8 (patch) | |
tree | b0d6168c81745baee2c07a734ccdc39669c415c5 /plugins/Scriver | |
parent | 4d82837e0d2c2eb398414ed58ce9fafb15304362 (diff) |
fixes #4659 (NewStory ведёт себя по-разному с разными плагинами сообщений)
Diffstat (limited to 'plugins/Scriver')
-rw-r--r-- | plugins/Scriver/src/tabs.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Scriver/src/tabs.cpp b/plugins/Scriver/src/tabs.cpp index ae5955063c..4b5b05d826 100644 --- a/plugins/Scriver/src/tabs.cpp +++ b/plugins/Scriver/src/tabs.cpp @@ -917,8 +917,11 @@ static INT_PTR CALLBACK DlgProcParentWindow(HWND hwndDlg, UINT msg, WPARAM wPara if (Clist_MenuProcessCommand(LOWORD(wParam), MPCF_CONTACTMENU, dat->m_hContact))
break;
- if (LOWORD(wParam) == IDCANCEL)
+ if (LOWORD(wParam) == IDCANCEL) {
+ if (dat && dat->m_hwndActive)
+ SetFocus(dat->m_hwndActive);
return TRUE;
+ }
break;
case WM_NOTIFY:
|