From 2bf0fc3c5c4be7fa497db0924296ef43d2f3b95e Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 10 Dec 2011 15:16:58 +0000 Subject: (svn r23476) -Codechange: use the error queue to replace switch mode error strings, again making it possible to return multiple errors --- src/window.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/window.cpp') 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; -- cgit v1.2.3-54-g00ecf