diff options
-rw-r--r-- | protocols/ICQ-WIM/src/options.cpp | 2 | ||||
-rw-r--r-- | src/mir_app/src/proto_opts.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/protocols/ICQ-WIM/src/options.cpp b/protocols/ICQ-WIM/src/options.cpp index 4b2bd88035..f1c0a2cd65 100644 --- a/protocols/ICQ-WIM/src/options.cpp +++ b/protocols/ICQ-WIM/src/options.cpp @@ -214,9 +214,7 @@ int CIcqProto::OnOptionsInit(WPARAM wParam, LPARAM) odp.szTitle.w = m_tszUserName; odp.flags = ODPF_UNICODE; odp.szGroup.w = LPGENW("Network"); - odp.position = 1; -// odp.szTab.w = LPGENW("Account"); odp.pDialog = new CIcqOptionsDlg(this, IDD_OPTIONS_FULL, true); g_plugin.addOptions(wParam, &odp); return 0; 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*)
|