fixes bug 255032 "gnomevfs protocol handler should use info.type to check for directories" r=biesi
git-svn-id: svn://10.0.0.236/trunk@161185 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
490545ad22
commit
259949ef24
@ -461,8 +461,7 @@ nsGnomeVFSInputStream::DoOpen()
|
||||
|
||||
GnomeVFSFileInfo info = {0};
|
||||
rv = gnome_vfs_get_file_info(mSpec.get(), &info, GNOME_VFS_FILE_INFO_DEFAULT);
|
||||
if (rv == GNOME_VFS_OK && info.mime_type &&
|
||||
(strcmp(info.mime_type, "x-directory/normal") == 0))
|
||||
if (rv == GNOME_VFS_OK && info.type == GNOME_VFS_FILE_TYPE_DIRECTORY)
|
||||
{
|
||||
rv = gnome_vfs_directory_list_load(&mDirList, mSpec.get(),
|
||||
GNOME_VFS_FILE_INFO_DEFAULT);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user