From 19b7249adee1dba623ba4ee69266cd13888deb3d Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 23 Feb 2011 20:54:55 +0000 Subject: (svn r22135) -Fix [FS#4523]: When commands need to invalidate windows, process these events asynchronously before the next redraw. Calling window code directly from command scope uses wrong _current_company and might issue nested DoCommands() which interfer with the running command. --- src/main_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main_gui.cpp') diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 3f43dcdc8..ed85860da 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -435,7 +435,7 @@ struct MainWindow : Window virtual void OnInvalidateData(int data) { /* Forward the message to the appropiate toolbar (ingame or scenario editor) */ - InvalidateWindowData(WC_MAIN_TOOLBAR, 0, data); + InvalidateWindowData(WC_MAIN_TOOLBAR, 0, data, true); } static Hotkey global_hotkeys[]; -- cgit v1.2.3-54-g00ecf