summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-10 15:16:58 +0000
committerrubidium <rubidium@openttd.org>2011-12-10 15:16:58 +0000
commit2bf0fc3c5c4be7fa497db0924296ef43d2f3b95e (patch)
tree693ef021b01bb1997dedae1760426f25d21dadc6 /src/window.cpp
parent420d358fef4d88942a5df168ab5c78d68060fe35 (diff)
downloadopenttd-2bf0fc3c5c4be7fa497db0924296ef43d2f3b95e.tar.xz
(svn r23476) -Codechange: use the error queue to replace switch mode error strings, again making it possible to return multiple errors
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 9241f6c84..33b48916a 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -32,6 +32,7 @@
#include "hotkeys.h"
#include "toolbar_gui.h"
#include "statusbar_gui.h"
+#include "error.h"
static Point _drag_delta; ///< delta between mouse cursor and upper left corner of dragged window
@@ -1448,6 +1449,8 @@ void InitWindowSystem()
NWidgetLeaf::InvalidateDimensionCache(); // Reset cached sizes of several widgets.
NWidgetScrollbar::InvalidateDimensionCache();
+
+ ShowFirstError();
}
/**
@@ -1455,6 +1458,8 @@ void InitWindowSystem()
*/
void UnInitWindowSystem()
{
+ UnshowCriticalError();
+
Window *w;
FOR_ALL_WINDOWS_FROM_FRONT(w) delete w;