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:
authorDalai Felinto <dfelinto@gmail.com>2010-08-10 02:54:40 +0400
committerDalai Felinto <dfelinto@gmail.com>2010-08-10 02:54:40 +0400
commit73f1d88be2197a945228a895b738b3ded0cda364 (patch)
tree7a10f22dc1239b56b085646c8bc4e3b726959d35 /source/blender/editors/space_file/filesel.c
parent825f0593e0bf99bb10a9cd8e2b0cc75b74e6e231 (diff)
Bugfix for:[23234] Blender File Browser - Back Button does work with first directory entered?
For !WIN32 systems the fix was in ED_fileselect_set_params (basically adding the first folder in the sfile->folders_prev list) For WIN32: I talked with Nathan (Jesterking) and he agreed that the fix in path_util.c was required too. Without that BLI_path_abs was always making WIN32 paths ending with \ to end with \\ (e.g. C:\Blender\ --> C:\Blender\\) And this was making the folder to fail ISDIR tests.
Diffstat (limited to 'source/blender/editors/space_file/filesel.c')
-rw-r--r--source/blender/editors/space_file/filesel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c
index 659763921c7..8783296f5c2 100644
--- a/source/blender/editors/space_file/filesel.c
+++ b/source/blender/editors/space_file/filesel.c
@@ -206,6 +206,13 @@ short ED_fileselect_set_params(SpaceFile *sfile)
params->filter = 0;
params->sort = FILE_SORT_ALPHA;
}
+
+
+ /* initialize the list with previous folders */
+ if (!sfile->folders_prev)
+ sfile->folders_prev = folderlist_new();
+ folderlist_pushdir(sfile->folders_prev, sfile->params->dir);
+
return 1;
}