summaryrefslogtreecommitdiff
path: root/src/os/windows/win32.cpp
diff options
context:
space:
mode:
authorglx22 <glx22@users.noreply.github.com>2019-04-07 21:52:30 +0200
committerGitHub <noreply@github.com>2019-04-07 21:52:30 +0200
commit3e608afa6c5ae615855afa99dea5fa727d1ae765 (patch)
tree7eac43941267f88a048ace91b87c37243cdb7efe /src/os/windows/win32.cpp
parent967b27a2c12953da3584f4eaade37f94effc007a (diff)
downloadopenttd-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.cpp2
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)