diff options
author | glx22 <glx22@users.noreply.github.com> | 2019-04-07 21:52:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-07 21:52:30 +0200 |
commit | 3e608afa6c5ae615855afa99dea5fa727d1ae765 (patch) | |
tree | 7eac43941267f88a048ace91b87c37243cdb7efe /src/os/windows/win32.cpp | |
parent | 967b27a2c12953da3584f4eaade37f94effc007a (diff) | |
download | openttd-3e608afa6c5ae615855afa99dea5fa727d1ae765.tar.xz |
Fix: [Windows] OpenTTD window may be inactive when an error happens (#7482)
Diffstat (limited to 'src/os/windows/win32.cpp')
-rw-r--r-- | src/os/windows/win32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/windows/win32.cpp b/src/os/windows/win32.cpp index d2cc434a2..ae78407ac 100644 --- a/src/os/windows/win32.cpp +++ b/src/os/windows/win32.cpp @@ -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) |