# HG changeset patch # User ib # Date 1345052798 0 # Node ID 64d72a128ea8877e95401cbc60aed14c2b7918df # Parent 05d54ab2ba5cefed44acad9a4379eff024acf42b Rewrite condition and use console_state instead of console. Although - currently - both variables are the same, it's console_state which reflects the current state of the debug console. diff -r 05d54ab2ba5c -r 64d72a128ea8 gui/win32/gui.c --- a/gui/win32/gui.c Wed Aug 15 17:22:01 2012 +0000 +++ b/gui/win32/gui.c Wed Aug 15 17:46:38 2012 +0000 @@ -157,10 +157,12 @@ print_version("MPlayer"); console_state = 1; } - if (gui == NULL) - return; - CheckMenuItem(gui->traymenu, ID_CONSOLE, MF_BYCOMMAND | (console ? MF_CHECKED : MF_UNCHECKED)); - CheckMenuItem(gui->menu, ID_CONSOLE, MF_BYCOMMAND | (console ? MF_CHECKED : MF_UNCHECKED)); + + if (gui) + { + CheckMenuItem(gui->traymenu, ID_CONSOLE, MF_BYCOMMAND | (console_state ? MF_CHECKED : MF_UNCHECKED)); + CheckMenuItem(gui->menu, ID_CONSOLE, MF_BYCOMMAND | (console_state ? MF_CHECKED : MF_UNCHECKED)); + } } void capitalize(char *filename)