From ec9540a12a9170f8b88e1d715c9321edaeeebfd4 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 13 Mar 2011 21:31:29 +0000 Subject: (svn r22241) -Codechange: Add additional to-be-used parameter to OnInvalidateData(). --- src/window_gui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/window_gui.h') diff --git a/src/window_gui.h b/src/window_gui.h index 3254ee8c4..fc5ebeeda 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -651,9 +651,9 @@ public: /** * Some data on this window has become invalid. * @param data information about the changed data. + * @param gui_scope Whether the call is done from GUI scope. You may not do everything when not in GUI scope. See #InvalidateWindowData() for details. */ - virtual void OnInvalidateData(int data = 0) {} - + virtual void OnInvalidateData(int data = 0, bool gui_scope = true) {} /** * The user clicked some place on the map when a tile highlight mode -- cgit v1.2.3-54-g00ecf