diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-05-31 23:08:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-05-31 23:08:12 +0400 |
commit | 526d9cc5fc9bd423815bddd0191fbafb82209f1e (patch) | |
tree | d4d04d81d41ff4882e93133a292f80b7368da4cf /source/blender/src/filesel.c | |
parent | c6528b3cd4d3507c9ae5b9cfa70d832731d95aec (diff) |
bugfix for own error
glitch when typing in / would ask the user to make a new directory. the last shash was being removed, then the "" path didnt exist and
asked to create it.
Diffstat (limited to 'source/blender/src/filesel.c')
-rw-r--r-- | source/blender/src/filesel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/filesel.c b/source/blender/src/filesel.c index 9689ffdafeb..2ba5745b19b 100644 --- a/source/blender/src/filesel.c +++ b/source/blender/src/filesel.c @@ -1591,7 +1591,7 @@ static void do_filesel_buttons(short event, SpaceFile *sfile) BLI_del_slash(butname); if(sfile->type & FILE_UNIX) { - if (!BLI_exists(butname)) { + if (butname[0] != '\0' && !BLI_exists(butname)) { if (okee("Makedir")) { BLI_recurdir_fileops(butname); if (!BLI_exists(butname)) parent(sfile); |