diff options
-rw-r--r-- | src/modules/metacontacts/meta_utils.cpp | 9 | ||||
-rw-r--r-- | src/modules/protocols/protoopts.cpp | 15 |
2 files changed, 6 insertions, 18 deletions
diff --git a/src/modules/metacontacts/meta_utils.cpp b/src/modules/metacontacts/meta_utils.cpp index adac54c90f..9adcaa451d 100644 --- a/src/modules/metacontacts/meta_utils.cpp +++ b/src/modules/metacontacts/meta_utils.cpp @@ -328,15 +328,6 @@ MCONTACT Meta_GetContactHandle(DBCachedContact *cc, int contact_number) *
* and ensure metafilter in place
*/
-
-#define szMsg LPGEN("The 'MetaContacts Hidden Group' has been added to your contact list.\n\
-This is most likely due to server-side contact information. To fix this, so that\n\
-MetaContacts continues to function correctly, you should:\n\
- - disable MetaContacts using the 'Toggle MetaContacts Off' main menu item\n\
- - move all contacts out of this group\n\
- - synchronize your contacts with the server\n\
- - re-enable MetaContacts")
-
int Meta_HideLinkedContacts(void)
{
DBVARIANT dbv, dbv2;
diff --git a/src/modules/protocols/protoopts.cpp b/src/modules/protocols/protoopts.cpp index 0b7b18ace9..724684609a 100644 --- a/src/modules/protocols/protoopts.cpp +++ b/src/modules/protocols/protoopts.cpp @@ -127,7 +127,7 @@ static INT_PTR CALLBACK AccFormDlgProc(HWND hwndDlg, UINT message, WPARAM wParam if (buf[0]) {
for (int i=0; i < accounts.getCount(); i++)
if (_stricmp(buf, accounts[i]->szModuleName) == 0) {
- MessageBox(NULL, TranslateT("Account name has to be unique. Please enter unique name."), TranslateT("Account error"), MB_ICONERROR | MB_OK);
+ MessageBox(hwndDlg, TranslateT("Account name has to be unique. Please enter unique name."), TranslateT("Account error"), MB_ICONERROR | MB_OK);
return FALSE;
}
}
@@ -136,11 +136,10 @@ static INT_PTR CALLBACK AccFormDlgProc(HWND hwndDlg, UINT message, WPARAM wParam switch(param->action) {
case PRAC_UPGRADED:
{
- int idx;
BOOL oldProto = pa->bOldProto;
TCHAR szPlugin[MAX_PATH];
mir_sntprintf(szPlugin, SIZEOF(szPlugin), _T("%s.dll"), StrConvT(pa->szProtoName));
- idx = accounts.getIndex(pa);
+ int idx = accounts.getIndex(pa);
UnloadAccount(pa, false, false);
accounts.remove(idx);
if (oldProto && UnloadPlugin(szPlugin, SIZEOF(szPlugin))) {
@@ -855,11 +854,11 @@ INT_PTR CALLBACK AccMgrDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM TCHAR buf[ 200 ];
mir_sntprintf(buf, SIZEOF(buf), TranslateT("Account %s is being deleted"), pa->tszAccountName);
if (pa->bOldProto) {
- MessageBox(NULL, TranslateT("You need to disable plugin to delete this account"), buf,
+ MessageBox(hwndDlg, TranslateT("You need to disable plugin to delete this account"), buf,
MB_ICONERROR | MB_OK);
break;
}
- if (IDYES == MessageBox(NULL, errMsg, buf, MB_ICONWARNING | MB_DEFBUTTON2 | MB_YESNO)) {
+ if (IDYES == MessageBox(hwndDlg, errMsg, buf, MB_ICONWARNING | MB_DEFBUTTON2 | MB_YESNO)) {
// lock controls to avoid changes during remove process
ListBox_SetCurSel(hList, -1);
sttUpdateAccountInfo(hwndDlg, dat);
@@ -973,10 +972,9 @@ INT_PTR CALLBACK AccMgrDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM switch (((LPNMHDR)lParam)->code) {
case PSN_APPLY:
{
- int i;
PSHNOTIFY pshn = {0};
pshn.hdr.code = PSN_APPLY;
- for (i=0; i < accounts.getCount(); i++) {
+ for (int i=0; i < accounts.getCount(); i++) {
if (accounts[i]->hwndAccMgrUI && accounts[i]->bAccMgrUIChanged) {
pshn.hdr.hwndFrom = accounts[i]->hwndAccMgrUI;
SendMessage(accounts[i]->hwndAccMgrUI, WM_NOTIFY, 0, (LPARAM)&pshn);
@@ -987,10 +985,9 @@ INT_PTR CALLBACK AccMgrDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM }
case PSN_RESET:
{
- int i;
PSHNOTIFY pshn = {0};
pshn.hdr.code = PSN_RESET;
- for (i=0; i < accounts.getCount(); i++) {
+ for (int i=0; i < accounts.getCount(); i++) {
if (accounts[i]->hwndAccMgrUI && accounts[i]->bAccMgrUIChanged) {
pshn.hdr.hwndFrom = accounts[i]->hwndAccMgrUI;
SendMessage(accounts[i]->hwndAccMgrUI, WM_NOTIFY, 0, (LPARAM)&pshn);
|