summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r--plugins/NewStory/src/history_control.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index d7102b980a..7b63110505 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -957,7 +957,7 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
case WM_KILLFOCUS:
if (wParam && (HWND)wParam != data->hwndEditBox)
data->EndEditItem(false);
- if (data->pMsgDlg)
+ if (data->pMsgDlg && (HWND)wParam == data->pMsgDlg->GetInput())
data->ClearSelection(0, -1);
return 0;