Make Replace-in-Files confirmation dialog modal

In order to prevent from crashing

Fix #7995, close #8022
This commit is contained in:
Scott Sumner 2020-03-08 20:27:45 -04:00 committed by Don HO
parent 32fc08c7e8
commit b5bd5bb026
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
1 changed files with 1 additions and 1 deletions

View File

@ -1196,7 +1196,7 @@ INT_PTR CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM
msg += _options._directory;
msg += TEXT("\rfor file type : ");
msg += _options._filters[0]?_options._filters:TEXT("*.*");
int res = ::MessageBox(_hParent, msg.c_str(), TEXT("Are you sure?"), MB_OKCANCEL | MB_DEFBUTTON2);
int res = ::MessageBox(NULL, msg.c_str(), TEXT("Are you sure?"), MB_OKCANCEL | MB_DEFBUTTON2 | MB_TASKMODAL);
if (res == IDOK)
{
HWND hFindCombo = ::GetDlgItem(_hSelf, IDFINDWHAT);