Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2009-09-16 00:47:34 +0400
committerAndrea Weikert <elubie@gmx.net>2009-09-16 00:47:34 +0400
commit063d806f152e003b662a0e22a19c27a4afbfb7fa (patch)
tree8af7c0a845b488c2ed3eea89b9e32a1556aa479f /source/blender/editors/space_file/filesel.c
parent22274d38079f7e1e1e0bf24e777c333961ed18f7 (diff)
2.5 filebrowser
bugfix #1: SpaceFile->files needs to be deleted on exec and cancel of the filebrowser and in init to ensure correct setting of the read function. bugfix #2: SpaceFile->params needs to be set in file_init otherwise Python can't access params in header ui.
Diffstat (limited to 'source/blender/editors/space_file/filesel.c')
-rw-r--r--source/blender/editors/space_file/filesel.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c
index 085eecd2a7d..a0787ef989d 100644
--- a/source/blender/editors/space_file/filesel.c
+++ b/source/blender/editors/space_file/filesel.c
@@ -169,18 +169,13 @@ short ED_fileselect_set_params(SpaceFile *sfile)
} else {
/* default values, if no operator */
+ params->type = FILE_UNIX;
params->flag |= FILE_HIDE_DOT;
params->display = FILE_SHORTDISPLAY;
params->filter = 0;
params->sort = FILE_SORT_ALPHA;
}
- /* new params, refresh file list */
- if(sfile->files) {
- filelist_free(sfile->files);
- filelist_setdir(sfile->files, params->dir);
- }
-
return 1;
}