diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-05-25 10:20:45 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-05-25 10:20:45 +0000 |
commit | 48ff0e851e2fe7235724ce50b1dc777d1ff18b5d (patch) | |
tree | c0c02e0254459e5fb552ac77ecc9f10fccead128 /src | |
parent | 22e6808c500a955bc9050749f9db2beb6ae2cac1 (diff) |
From IM: Add notification on account creation name duplication error.
git-svn-id: http://svn.miranda-ng.org/main/trunk@4818 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/protocols/protoopts.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/protocols/protoopts.cpp b/src/modules/protocols/protoopts.cpp index 3e03433e15..aa5d75af62 100644 --- a/src/modules/protocols/protoopts.cpp +++ b/src/modules/protocols/protoopts.cpp @@ -125,8 +125,10 @@ static INT_PTR CALLBACK AccFormDlgProc(HWND hwndDlg, UINT message, WPARAM wParam rtrim(buf);
if (buf[0]) {
for (int i=0; i < accounts.getCount(); i++)
- if (_stricmp(buf, accounts[i]->szModuleName) == 0)
+ 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);
return FALSE;
+ }
}
}
|