diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-24 15:47:27 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-24 15:47:27 +0000 |
commit | 698d9a72ef428eaf59e2e5238dc5392d8486852f (patch) | |
tree | e4372dcbbfbc1e258530d00a39ff2a2412d7910b /src/core | |
parent | 46a3d5c05b077f7dc3034465b0b7e0a8ea6b5204 (diff) |
file selection dialog must call a hook before destroying window
git-svn-id: http://svn.miranda-ng.org/main/trunk@8260 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdfile/filesenddlg.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/stdfile/filesenddlg.cpp b/src/core/stdfile/filesenddlg.cpp index 7b56745a75..ab9dc3eb57 100644 --- a/src/core/stdfile/filesenddlg.cpp +++ b/src/core/stdfile/filesenddlg.cpp @@ -294,7 +294,9 @@ INT_PTR CALLBACK DlgProcSendFile(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l mir_free((TCHAR*)lParam);
dat->closeIfFileChooseCancelled = 0;
}
- else if (dat->closeIfFileChooseCancelled) DestroyWindow(hwndDlg);
+ else if (dat->closeIfFileChooseCancelled)
+ PostMessage(hwndDlg, WM_COMMAND, IDCANCEL, 0);
+
EnableWindow(hwndDlg, TRUE);
break;
|