Mercurial > mplayer.hg
diff gui/dialog/fileselect.c @ 35964:3ebf8c880e07
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.
author | ib |
---|---|
date | Mon, 25 Mar 2013 00:46:12 +0000 |
parents | 373c1104023f |
children | 76d4f38ffdf9 |
line wrap: on
line diff
--- a/gui/dialog/fileselect.c Mon Mar 25 00:45:32 2013 +0000 +++ b/gui/dialog/fileselect.c Mon Mar 25 00:46:12 2013 +0000 @@ -666,7 +666,7 @@ 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 @@ fsMedium=(fsType == fsVideoSelector || fsType == fsSubtitleSelector || fsType == fsAudioSelector); - if ( !tmp && fsMedium ) tmp=guiInfo.Filename; - if ( tmp && tmp[0] && !strstr( tmp,"://" ) ) { dir = strdup( tmp );