summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-18 22:35:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-18 22:35:00 +0300
commit61757497a901760271660c20390fc39aa6300a42 (patch)
tree5c956e2159f10c35628f684d037192a6dcd9e6c5
parentb31ffcf7f477ebc33b6e566e564e8e4b6f45eae6 (diff)
implements #1111 (StdMsg: Toolbar improvement)
-rw-r--r--src/mir_app/src/srmm_toolbar.cpp3
1 files changed, 3 insertions, 0 deletions
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*)