From: H.G. Muller Date: Fri, 26 Mar 2010 17:26:04 +0000 (+0100) Subject: Fix disabling of Chat Box navigation buttons X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=45ceecc52a3f3c8f44bb5272f658be4d95f0cc07;p=xboard.git Fix disabling of Chat Box navigation buttons The buttons for non-open boxes were enabed, rather than disabled. --- diff --git a/winboard/wchat.c b/winboard/wchat.c index 81e190d..a387466 100644 --- a/winboard/wchat.c +++ b/winboard/wchat.c @@ -195,13 +195,14 @@ LRESULT CALLBACK ChatProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam sprintf(buf, "Chat Window %s", first.tidy); SetWindowText(hDlg, buf); } - for(i=0; ipartner), chatPartner[i]); - } else EnableWindow( GetDlgItem(hDlg, IDC_Focus1+i-(i>partner)), 1 ); + } else EnableWindow( GetDlgItem(hDlg, IDC_Focus1+i-(i>partner)), 0 ); for(i=0; i