summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-04 13:35:17 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-04 13:35:17 +0300
commita5d8287df3cb04ddea3888cce55ce08f4d5fe73b (patch)
treeff71921e51609c727b7b597c505a21d3e5d1c540
parent2ca0c9066534beab0279ec0cefe35a56bebe44b7 (diff)
TabSRMM: very complicated & non-linear dependency between BBCodes & toolbar buttons visibility removed
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp
index a619dffa0d..c138fc9909 100644
--- a/plugins/TabSRMM/src/msgdlgutils.cpp
+++ b/plugins/TabSRMM/src/msgdlgutils.cpp
@@ -1228,8 +1228,6 @@ void CTabBaseDlg::PlayIncomingSound() const
// reads send format and configures the toolbar buttons
// if mode == 0, int only configures the buttons and does not change send format
-static UINT controls[] = { IDC_SRMM_BOLD, IDC_SRMM_ITALICS, IDC_SRMM_UNDERLINE, IDC_FONTSTRIKEOUT };
-
void CTabBaseDlg::GetSendFormat()
{
m_SendFormat = M.GetDword(m_hContact, "sendformat", PluginConfig.m_SendFormat);
@@ -1237,10 +1235,6 @@ void CTabBaseDlg::GetSendFormat()
m_SendFormat = 0;
else if (m_SendFormat == 0)
m_SendFormat = PluginConfig.m_SendFormat ? 1 : 0;
-
- for (auto &it : controls)
- Utils::enableDlgControl(m_hwnd, it, m_SendFormat != 0);
- return;
}
/////////////////////////////////////////////////////////////////////////////////////////