bugfix for own error
authorCampbell Barton <ideasman42@gmail.com>
Sat, 31 May 2008 19:08:12 +0000 (19:08 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 31 May 2008 19:08:12 +0000 (19:08 +0000)
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

index 9689ffdafebc76ec5a2dd8d9d20eb96c8658cc83..2ba5745b19b062e0630f3f5b47d9373c9aa3f31c 100644 (file)
@@ -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);