From 526d9cc5fc9bd423815bddd0191fbafb82209f1e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 31 May 2008 19:08:12 +0000 Subject: 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. --- source/blender/src/filesel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/src') 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); -- cgit v1.2.3