Mercurial > mplayer.hg
changeset 35832:6e4f1f9faca0
Fix bug with deleted file appearing in the path list.
Since r35493 a file just played, stopped and deleted while the GUI is in
idle mode appeared in the file selector path list upon the next evLoad.
author | ib |
---|---|
date | Thu, 28 Feb 2013 11:18:20 +0000 |
parents | acc4ff4f279c |
children | dbfedb331095 |
files | gui/dialog/fileselect.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/dialog/fileselect.c Thu Feb 28 00:40:48 2013 +0000 +++ b/gui/dialog/fileselect.c Thu Feb 28 11:18:20 2013 +0000 @@ -331,7 +331,7 @@ do { char * c = strrchr( dir,'/' ); - if ( ( stat( dir,&f ) != 0 ) || S_ISDIR( f.st_mode ) ) break; + if ( ( stat( dir,&f ) == 0 ) && S_ISDIR( f.st_mode ) ) break; if ( c ) *c=0; } while ( strrchr( dir,'/' ) );