From 084dae624a4f28e96b0aa5f904110a0c46ff409e Mon Sep 17 00:00:00 2001 From: pontscho Date: Mon, 3 Feb 2003 22:06:07 +0000 Subject: [PATCH] fix idx git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9260 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/gtk/opts.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Gui/mplayer/gtk/opts.c b/Gui/mplayer/gtk/opts.c index 682c888bf5..277ce4b01e 100644 --- a/Gui/mplayer/gtk/opts.c +++ b/Gui/mplayer/gtk/opts.c @@ -316,7 +316,7 @@ void ShowPreferences( void ) // -- 5. page gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBNonInterlaved ),force_ni ); - gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBIndex ),index_mode ); + if ( index_mode == 1 ) gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBIndex ),1 ); { int i; GList * Items = NULL; @@ -570,7 +570,8 @@ void prButton( GtkButton * button,gpointer user_data ) // -- 5. page force_ni=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBNonInterlaved ) ); - index_mode=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBIndex ) ); + index_mode=-1; + if ( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBIndex ) ) ) index_mode=1; { int i;