diff options
author | George Hazan <ghazan@miranda.im> | 2021-05-11 13:26:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-05-11 13:26:56 +0300 |
commit | 6bb048378e2b73c908f4512d9a925e736bd44fda (patch) | |
tree | 59fa9ffce6e00d82c3b6254b7e5d2cdcde3bdb89 /protocols/JabberG/src/jabber_chat.cpp | |
parent | 383409527e474e83078178f5e80975b64fb5ffcf (diff) |
CCtrlCombo::GetCurData = suitable helper for combo boxes
Diffstat (limited to 'protocols/JabberG/src/jabber_chat.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_chat.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp index 8946a65c78..8f1cbf7b50 100644 --- a/protocols/JabberG/src/jabber_chat.cpp +++ b/protocols/JabberG/src/jabber_chat.cpp @@ -865,13 +865,13 @@ public: void onSelChange_Affiliation(CCtrlCombo*)
{
- int value = cmbAffiliation.GetItemData(cmbAffiliation.GetCurSel());
+ int value = cmbAffiliation.GetCurData();
btnAffiliation.Enable(m_him->m_affiliation != value);
}
void onClick_Affiliation(CCtrlButton *)
{
- int value = cmbAffiliation.GetItemData(cmbAffiliation.GetCurSel());
+ int value = cmbAffiliation.GetCurData();
if (m_him->m_affiliation == value)
return;
@@ -907,13 +907,13 @@ public: void onSelChange_Role(CCtrlCombo *)
{
- int value = cmbRole.GetItemData(cmbRole.GetCurSel());
+ int value = cmbRole.GetCurData();
btnRole.Enable(m_him->m_role != value);
}
void onClick_Role(CCtrlButton*)
{
- int value = cmbRole.GetItemData(cmbRole.GetCurSel());
+ int value = cmbRole.GetCurData();
if (m_him->m_role == value)
return;
|