From 08164794b2dad21e2ffaf2fa61d60fa77d86d2c8 Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Sat, 20 Mar 2010 14:23:56 +0000 Subject: Fix [#21658] file browser "hide invisible" doesn't hide anything - moved global hide_dot to filelist. - hiding dot files is now included in the filtering of files, which means that for this directory also doesn't have to be read anymore. - reverted changes of rev. 27491 and related changes in rev. 27523 in favor of a more general abstraction for the different 'file browser modes' with respect to filtering. --- source/blender/editors/space_file/filesel.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'source/blender/editors/space_file/filesel.c') diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c index da8dc4b654c..cce821f3f21 100644 --- a/source/blender/editors/space_file/filesel.c +++ b/source/blender/editors/space_file/filesel.c @@ -194,7 +194,6 @@ short ED_fileselect_set_params(SpaceFile *sfile) params->filter = 0; params->sort = FILE_SORT_ALPHA; } - params->oldflag = params->flag; return 1; } @@ -411,19 +410,7 @@ void file_change_dir(bContext *C, int checkdir) /* could return but just refresh the current dir */ } filelist_setdir(sfile->files, sfile->params->dir); - /* XXX special case handling - behaviour of filebrowser changes when - browsing into .blend file */ - if (sfile->params->type == FILE_LOADLIB) { - char group[GROUP_MAX]; - char dir[FILE_MAX]; - if (filelist_islibrary(sfile->files, dir, group)) { - sfile->params->flag &= ~FILE_FILTER; - } else { - /* reset the old flag */ - sfile->params->flag = sfile->params->oldflag; - } - } + if(folderlist_clear_next(sfile)) folderlist_free(sfile->folders_next); -- cgit v1.2.3