(trunk gtk) #2980 "'Open Folder' behavior can be confusing for single-file torrents" -- fixed in trunk for 1.92

This commit is contained in:
Charles Kerr 2010-02-26 15:06:26 +00:00
parent bd635f22d0
commit 2b21104ae9
1 changed files with 2 additions and 0 deletions

View File

@ -331,6 +331,8 @@ get_icon( const tr_torrent * tor, GtkIconSize icon_size, GtkWidget * for_widget
mime_type = UNKNOWN_MIME_TYPE;
else if( info->fileCount > 1 )
mime_type = DIRECTORY_MIME_TYPE;
else if( strchr( info->files[0].name, '/' ) != NULL )
mime_type = DIRECTORY_MIME_TYPE;
else
mime_type = get_mime_type_from_filename( info->files[0].name );