Cleanup/refactor spacefile's 'check dir' code.
[blender.git] / source / blender / editors / space_file / filesel.c
index 1a558d405601afeccc2799cdfd0316d13b2c6b9f..7abe5ff5070ad591dc304a2a6823c0d600c49590 100644 (file)
@@ -592,7 +592,7 @@ void ED_file_change_dir(bContext *C)
                sfile->params->filter_search[0] = '\0';
                sfile->params->active_file = -1;
 
-               if (!file_is_dir(sfile, sfile->params->dir)) {
+               if (!filelist_is_dir(sfile->files, sfile->params->dir)) {
                        BLI_strncpy(sfile->params->dir, filelist_dir(sfile->files), sizeof(sfile->params->dir));
                        /* could return but just refresh the current dir */
                }