2.5 filebrowser
[blender-staging.git] / source / blender / editors / space_file / filesel.c
index 085eecd2a7ddbf604b70f8dce669fd9bd5346722..e9e09d8f60b2cce3c1ce512bf49cb887c8b6d453 100644 (file)
@@ -117,8 +117,6 @@ short ED_fileselect_set_params(SpaceFile *sfile)
                BLI_strncpy(sfile->params->file, file, sizeof(sfile->params->file));
                BLI_make_file_string(G.sce, sfile->params->dir, dir, ""); /* XXX needed ? - also solve G.sce */
        }
                BLI_strncpy(sfile->params->file, file, sizeof(sfile->params->file));
                BLI_make_file_string(G.sce, sfile->params->dir, dir, ""); /* XXX needed ? - also solve G.sce */
        }
-       
-       ED_fileselect_reset_params(sfile);
 
        params = sfile->params;
 
 
        params = sfile->params;
 
@@ -169,18 +167,13 @@ short ED_fileselect_set_params(SpaceFile *sfile)
                
        } else {
                /* default values, if no operator */
                
        } else {
                /* default values, if no operator */
+               params->type = FILE_UNIX;
                params->flag |= FILE_HIDE_DOT;
                params->display = FILE_SHORTDISPLAY;
                params->filter = 0;
                params->sort = FILE_SORT_ALPHA;
        }
 
                params->flag |= FILE_HIDE_DOT;
                params->display = FILE_SHORTDISPLAY;
                params->filter = 0;
                params->sort = FILE_SORT_ALPHA;
        }
 
-       /* new params, refresh file list */
-       if(sfile->files) { 
-               filelist_free(sfile->files);
-               filelist_setdir(sfile->files, params->dir);
-       }
-
        return 1;
 }
 
        return 1;
 }