summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-15 10:46:37 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-15 10:46:37 +0300
commit6471ea7eb9980bc55ad79a7f5ca622633a88bbb3 (patch)
treeabde3e75c44cd6033ee951c42f94830e4086dd98 /plugins
parentcfb2353a35c2275d1f8d45323817503ee6ddc4a4 (diff)
fixes #3923 (NewStory: лишние кнопки в глобальном поиске)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/history_dlg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_dlg.cpp b/plugins/NewStory/src/history_dlg.cpp
index 4e74bbe53f..e7094db113 100644
--- a/plugins/NewStory/src/history_dlg.cpp
+++ b/plugins/NewStory/src/history_dlg.cpp
@@ -508,7 +508,7 @@ public:
m_histCtrl = (NewstoryListData *)GetWindowLongPtr(m_histWindow.GetHwnd(), 0);
- if (m_hContact <= 0) {
+ if (m_hContact == 0 || m_hContact == INVALID_CONTACT_ID) {
btnSendMsg.Hide();
btnUserInfo.Hide();
btnUserMenu.Hide();