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:
authorCampbell Barton <ideasman42@gmail.com>2012-01-30 14:04:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-30 14:04:27 +0400
commit4f38c52200a0e1d05d13ea07d01994d4884acf53 (patch)
tree574d1f340905c050fb0c7b8f24c3cb5c0cfd4242 /source/blender/editors
parent68a8efa8d33924ea4cafdbd6f185c30503518613 (diff)
file selector - entering and empty path on *nix would ask to create a new dir.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_file/file_ops.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index daa2031bb5f..8a5f5c1427e 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -1096,8 +1096,14 @@ static void file_expand_directory(bContext *C)
BLI_join_dirfile(sfile->params->dir, sizeof(sfile->params->dir), BLI_getDefaultDocumentFolder(), tmpstr);
}
-#ifdef WIN32
- if (sfile->params->dir[0] == '\0') {
+ else if (sfile->params->dir[0] == '\0')
+#ifndef WIN32
+ {
+ sfile->params->dir[0] = '/';
+ sfile->params->dir[1] = '\0';
+ }
+#else
+ {
get_default_root(sfile->params->dir);
}
/* change "C:" --> "C:\", [#28102] */