summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_menus.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-10 14:39:18 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-10 14:39:18 +0300
commit33fcc371716d9cf61f5396eaaa1a31fbbd2cbbe8 (patch)
tree75f2d114d683c26af2784def985b1969e007ffb3 /plugins/NewStory/src/history_menus.cpp
parent315e30ceaec21a628df017db96c25d6a4d88ecc5 (diff)
NewStory: no need to store hEvent twice, since there's one inside DB::EventInfo
Diffstat (limited to 'plugins/NewStory/src/history_menus.cpp')
-rw-r--r--plugins/NewStory/src/history_menus.cpp4
1 files changed, 2 insertions, 2 deletions
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) {