Make Replace-in-Files confirmation dialog modal
In order to prevent from crashing Fix #7995, close #8022
This commit is contained in:
parent
32fc08c7e8
commit
b5bd5bb026
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue