summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-11-25 15:48:55 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-11-25 15:48:55 +0300
commitce389c4b8fd79d1c8e158d1df0a15d6bce9119b8 (patch)
treeb0d6168c81745baee2c07a734ccdc39669c415c5 /plugins
parent4d82837e0d2c2eb398414ed58ce9fafb15304362 (diff)
fixes #4659 (NewStory ведёт себя по-разному с разными плагинами сообщений)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Scriver/src/tabs.cpp5
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: