(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.
This commit is contained in:
@@ -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<MainWindow> global_hotkeys[];
|
||||
|
Reference in New Issue
Block a user