From: H.G. Muller Date: Mon, 9 Jan 2012 19:27:01 +0000 (+0100) Subject: Open WB startup chat boxes only after logged on X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=775a285cb90927b912ebe6f6e5ef604bfee3708c;p=xboard.git Open WB startup chat boxes only after logged on The init code for opening the chat boxes ismoved to DisplayIcsTitle(). --- diff --git a/winboard/winboard.c b/winboard/winboard.c index 85088b8..e3cd83b 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -1139,15 +1139,6 @@ InitInstance(HINSTANCE hInstance, int nCmdShow, LPSTR lpCmdLine) 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE); #endif ShowWindow(hwndConsole, nCmdShow); - if(appData.chatBoxes) { // [HGM] chat: open chat boxes - char buf[MSG_SIZ], *p = buf, *q; - safeStrCpy(buf, appData.chatBoxes, sizeof(buf)/sizeof(buf[0]) ); - do { - q = strchr(p, ';'); - if(q) *q++ = 0; - if(*p) ChatPopUp(p); - } while(p=q); - } SetActiveWindow(hwndConsole); } if(!appData.noGUI) UpdateWindow(hwnd); else ShowWindow(hwnd, SW_MINIMIZE); @@ -8554,6 +8545,16 @@ DisplayIcsInteractionTitle(char *str) snprintf(consoleTitle, MSG_SIZ, "%s: %s", szConsoleTitle, str); SetWindowText(hwndConsole, consoleTitle); + + if(appData.chatBoxes) { // [HGM] chat: open chat boxes + char buf[MSG_SIZ], *p = buf, *q; + safeStrCpy(buf, appData.chatBoxes, sizeof(buf)/sizeof(buf[0]) ); + do { + q = strchr(p, ';'); + if(q) *q++ = 0; + if(*p) ChatPopUp(p); + } while(p=q); + } } void