mirror of https://github.com/OpenTTD/OpenTTD
Fix: [Windows] OpenTTD window may be inactive when an error happens (#7482)
parent
967b27a2c1
commit
3e608afa6c
|
@ -79,7 +79,7 @@ bool LoadLibraryList(Function proc[], const char *dll)
|
|||
void ShowOSErrorBox(const char *buf, bool system)
|
||||
{
|
||||
MyShowCursor(true);
|
||||
MessageBox(GetActiveWindow(), OTTD2FS(buf), _T("Error!"), MB_ICONSTOP);
|
||||
MessageBox(GetActiveWindow(), OTTD2FS(buf), _T("Error!"), MB_ICONSTOP | MB_TASKMODAL);
|
||||
}
|
||||
|
||||
void OSOpenBrowser(const char *url)
|
||||
|
|
Loading…
Reference in New Issue