summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-08-19 19:24:04 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-08-19 19:24:04 +0300
commitf351f4eaa3808b6b5c873cccc7072da2e0c86c8a (patch)
tree34d7107c5a923155262c3bb6365f8301d2bd0f60 /plugins
parent444338b0b7ac582a3208a06b0a1847c8e6dc5d3c (diff)
fixes #3646 (NewStory: меню контакта в системной истории)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/history_dlg.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/NewStory/src/history_dlg.cpp b/plugins/NewStory/src/history_dlg.cpp
index 9bb1f2e790..968e72974e 100644
--- a/plugins/NewStory/src/history_dlg.cpp
+++ b/plugins/NewStory/src/history_dlg.cpp
@@ -439,6 +439,11 @@ public:
if (m_hContact != INVALID_CONTACT_ID) {
Utils_RestoreWindowPosition(m_hwnd, m_hContact, MODULENAME, "wnd_");
+ if (!m_hContact) {
+ btnUserInfo.Disable();
+ btnSendMsg.Disable();
+ }
+
m_histCtrl->AddEvent(m_hContact, 0, -1);
TimeTreeBuild();