From 61757497a901760271660c20390fc39aa6300a42 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 18 Jan 2018 22:35:00 +0300 Subject: implements #1111 (StdMsg: Toolbar improvement) --- src/mir_app/src/srmm_toolbar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mir_app/src/srmm_toolbar.cpp b/src/mir_app/src/srmm_toolbar.cpp index 4efa509b64..5451637512 100644 --- a/src/mir_app/src/srmm_toolbar.cpp +++ b/src/mir_app/src/srmm_toolbar.cpp @@ -744,6 +744,9 @@ public: cbd->m_bChatButton = m_btnChat.GetState() != 0; cbd->m_bCanBeHidden = !cbd->m_bCantBeHidden && m_btnHidden.GetState() != 0; cbd->m_opFlags = (cbd->m_bIMButton ? BBSF_IMBUTTON : 0) + (cbd->m_bChatButton ? BBSF_CHATBUTTON : 0) + (cbd->m_bCanBeHidden ? BBSF_CANBEHIDDEN : 0); + + if (!cbd->m_bChatButton && !cbd->m_bIMButton) + m_toolBar.SetCheckState(tvi.hItem, 0); } void OnTreeSelChanged(void*) -- cgit v1.2.3