From 48ff0e851e2fe7235724ce50b1dc777d1ff18b5d Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 25 May 2013 10:20:45 +0000 Subject: 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 --- src/modules/protocols/protoopts.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; + } } } -- cgit v1.2.3