diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-23 17:52:51 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-23 17:52:51 +0300 |
commit | 0489bed8751d89c37ee7a3eb08cc8aa80b3524a0 (patch) | |
tree | 18a8da0993bca65b802f85e4d69c4f307e5dd87f /src/mir_app | |
parent | 51f835c7711083e9b3288eaa8d4513f6ee955a45 (diff) |
fixes #1763 (ICQ: cannot enter ICQ details if another ICQ account has been removed in this session)
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/proto_opts.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mir_app/src/proto_opts.cpp b/src/mir_app/src/proto_opts.cpp index e8bb77f5ea..ba38cee3b9 100644 --- a/src/mir_app/src/proto_opts.cpp +++ b/src/mir_app/src/proto_opts.cpp @@ -186,7 +186,7 @@ class CAccountManagerDlg : public CDlgBase {
int curSel = m_accList.GetCurSel();
if (curSel != LB_ERR) {
- PROTOACCOUNT *pa = (PROTOACCOUNT *)m_accList.GetItemData(curSel);
+ PROTOACCOUNT *pa = (PROTOACCOUNT*)m_accList.GetItemData(curSel);
if (pa) {
m_btnEdit.Enable(!pa->bOldProto && !pa->bDynDisabled);
m_btnRemove.Enable(true);
@@ -194,7 +194,7 @@ class CAccountManagerDlg : public CDlgBase m_btnOptions.Enable(pa->ppro != nullptr);
if (m_iSelected >= 0) {
- PROTOACCOUNT *pa_old = (PROTOACCOUNT *)m_accList.GetItemData(m_iSelected);
+ PROTOACCOUNT *pa_old = (PROTOACCOUNT*)m_accList.GetItemData(m_iSelected);
if (pa_old && pa_old != pa && pa_old->hwndAccMgrUI)
ShowWindow(pa_old->hwndAccMgrUI, SW_HIDE);
}
@@ -489,8 +489,10 @@ public: void OnAdd(CCtrlButton*)
{
- if (IDOK == CAccountFormDlg(this, PRAC_ADDED, nullptr).DoModal())
+ if (IDOK == CAccountFormDlg(this, PRAC_ADDED, nullptr).DoModal()) {
+ m_iPrevSel = -1;
Refresh();
+ }
}
void OnEdit(CCtrlButton*)
|