summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
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: