summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-02-14 19:48:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-02-14 19:48:47 +0000
commit20d8a4a39a44717b469619a7b03b9d6400b0ea7e (patch)
tree5fef312dfae78ef0d9d7997063349c5539acae6b /src
parent9d00a8e19539785b9cce61cf1b8dfff9a9470a96 (diff)
old default behavior restored
git-svn-id: http://svn.miranda-ng.org/main/trunk@12107 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/core/stdfile/src/filerecvdlg.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/stdfile/src/filerecvdlg.cpp b/src/core/stdfile/src/filerecvdlg.cpp
index 62bdbccbf4..55987c3045 100644
--- a/src/core/stdfile/src/filerecvdlg.cpp
+++ b/src/core/stdfile/src/filerecvdlg.cpp
@@ -191,7 +191,7 @@ void GetReceivedFilesDir(TCHAR *szDir, int cchDir)
INT_PTR CALLBACK DlgProcRecvFile(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
FileDlgData *dat = (FileDlgData*)GetWindowLongPtr(hwndDlg, GWLP_USERDATA);
-
+
switch (msg) {
case WM_INITDIALOG:
TranslateDialogDefault(hwndDlg);
@@ -381,7 +381,7 @@ INT_PTR CALLBACK DlgProcRecvFile(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l
break;
case IDC_ADD:
- {
+ {
ADDCONTACTSTRUCT acs = { 0 };
acs.hContact = dat->hContact;
acs.handleType = HANDLE_CONTACT;
@@ -427,6 +427,7 @@ INT_PTR CALLBACK DlgProcRecvFile(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l
SkinPlaySound("FileDenied");
FlashWindow(hwndDlg, TRUE);
}
+ else SendMessage(hwndDlg, WM_COMMAND, MAKEWPARAM(IDCANCEL, 0), (LPARAM)GetDlgItem(hwndDlg, IDCANCEL));
}
break;