summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdfile/filesenddlg.cpp4
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;