From 45ceecc52a3f3c8f44bb5272f658be4d95f0cc07 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 26 Mar 2010 18:26:04 +0100 Subject: [PATCH] Fix disabling of Chat Box navigation buttons The buttons for non-open boxes were enabed, rather than disabled. --- winboard/wchat.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) 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