summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-11 20:31:40 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-11 20:31:40 +0300
commit9de1d538a76b07cb10a80ba2620249d1a530e583 (patch)
treea8c31dc3ab3d3b827d99ddbed9c5aea3f9761183
parent53b41c5180eaa9d01b7a57d6ccd4602384a1aebb (diff)
fixes #3912 (Tabsrmm + IRC: leave chat room for server window)
-rw-r--r--plugins/TabSRMM/src/msgdlgother.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp
index e29dfdef75..15c6dd4732 100644
--- a/plugins/TabSRMM/src/msgdlgother.cpp
+++ b/plugins/TabSRMM/src/msgdlgother.cpp
@@ -1596,7 +1596,7 @@ int CMsgDialog::MsgWindowUpdateMenu(HMENU submenu, int menuID)
bool bInfoPanel = m_pPanel.isActive();
if (menuID == MENU_TABCONTEXT) {
- EnableMenuItem(submenu, ID_TABMENU_LEAVECHATROOM, (isChat() && ProtoServiceExists(m_szProto, PS_LEAVECHAT)) ? MF_ENABLED : MF_GRAYED);
+ EnableMenuItem(submenu, ID_TABMENU_LEAVECHATROOM, (m_si && m_si->iType == GCW_CHATROOM && ProtoServiceExists(m_szProto, PS_LEAVECHAT)) ? MF_ENABLED : MF_GRAYED);
EnableMenuItem(submenu, ID_TABMENU_ATTACHTOCONTAINER, (M.GetByte("useclistgroups", 0) || M.GetByte("singlewinmode", 0)) ? MF_GRAYED : MF_ENABLED);
EnableMenuItem(submenu, ID_TABMENU_CLEARSAVEDTABPOSITION, (M.GetDword(m_hContact, "tabindex", -1) != -1) ? MF_ENABLED : MF_GRAYED);
}