From 33fcc371716d9cf61f5396eaaa1a31fbbd2cbbe8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 Mar 2024 14:39:18 +0300 Subject: NewStory: no need to store hEvent twice, since there's one inside DB::EventInfo --- plugins/NewStory/src/history_menus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/NewStory/src/history_menus.cpp') diff --git a/plugins/NewStory/src/history_menus.cpp b/plugins/NewStory/src/history_menus.cpp index d5249817e9..4fcb785562 100644 --- a/plugins/NewStory/src/history_menus.cpp +++ b/plugins/NewStory/src/history_menus.cpp @@ -60,9 +60,9 @@ HMENU NSMenu_Build(NewstoryListData *data, ItemData *item) } bEditable = (item->dbe.flags & DBEF_SENT) != 0; - bShowEventActions = item->hEvent != 0; + bShowEventActions = item->dbe; - DB::EventInfo dbei(item->hEvent); + DB::EventInfo dbei(item->dbe.getEvent()); NotifyEventHooks(hEventPreBuildMenu, item->hContact, (LPARAM)&dbei); if (data->pMsgDlg) { -- cgit v1.2.3