[MPlayer-cvslog] r36058 - trunk/gui/dialog/fileselect.c

ib subversion at mplayerhq.hu
Mon Mar 25 01:46:12 CET 2013


Author: ib
Date: Mon Mar 25 01:46:12 2013
New Revision: 36058

Log:
Don't set path information for fsVideoSelector on ShowFileSelect().

This avoids adding the path of the first playlist item to the history.

The path of a selected file has already been added to the history on
file selection, so this information won't get lost.

Modified:
   trunk/gui/dialog/fileselect.c

Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c	Mon Mar 25 01:45:32 2013	(r36057)
+++ trunk/gui/dialog/fileselect.c	Mon Mar 25 01:46:12 2013	(r36058)
@@ -666,7 +666,7 @@ void ShowFileSelect( int type,int modal 
         gtk_combo_set_popdown_strings( GTK_COMBO( List ),fsList_items );
         g_list_free( fsList_items );
         gtk_entry_set_text( GTK_ENTRY( fsFilterCombo ),fsVideoFilterNames[k >= 0 ? k : i-2][0] );
-	tmp=guiInfo.Filename;
+	//tmp=guiInfo.Filename;
         break;
    case fsSubtitleSelector:
         gtk_window_set_title( GTK_WINDOW( fsFileSelect ),MSGTR_SubtitleSelect );
@@ -715,8 +715,6 @@ void ShowFileSelect( int type,int modal 
 
  fsMedium=(fsType == fsVideoSelector || fsType == fsSubtitleSelector || fsType == fsAudioSelector);
 
- if ( !tmp && fsMedium ) tmp=guiInfo.Filename;
-
  if ( tmp && tmp[0] && !strstr( tmp,"://" ) )
   {
    dir = strdup( tmp );


More information about the MPlayer-cvslog mailing list