From 007cece71aebe64dafc824894270e4661416dcfc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 10 Oct 2024 20:58:09 +0300 Subject: NewStory: dbl click action to follow Edit menu item behavior --- plugins/NewStory/src/history_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/NewStory/src') diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index abe8a6cae3..051c4eff5a 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -259,7 +259,7 @@ void NewstoryListData::BeginEditItem() mir_subclassWindow(hwndEditBox, HistoryEditWndProc); SendMessage(hwndEditBox, WM_SETFONT, (WPARAM)g_fontTable[fontid].hfnt, 0); SendMessage(hwndEditBox, EM_SETMARGINS, EC_RIGHTMARGIN, 100); - if (item->dbe.eventType != EVENTTYPE_MESSAGE) + if (item->dbe.eventType != EVENTTYPE_MESSAGE || !(item->dbe.flags & DBEF_SENT)) SendMessage(hwndEditBox, EM_SETREADONLY, TRUE, 0); ShowWindow(hwndEditBox, SW_SHOW); -- cgit v1.2.3