diff options
author | Andrea Weikert <elubie@gmx.net> | 2009-07-10 23:52:00 +0400 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2009-07-10 23:52:00 +0400 |
commit | a95c68a3eaa692f742e7f2e626b65daa71727c17 (patch) | |
tree | 104a242a6dbda0cc801041f18f60a292207a6242 /source/blender/editors/space_file/file_ops.c | |
parent | ac11d522c8cad7eeabe07e643effbc776e933728 (diff) |
2.5 file browser
* bugfix: set the directory to the default root when directory button is empty
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index 585e042ae8a..8f1d2598c61 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -720,6 +720,10 @@ int file_directory_exec(bContext *C, wmOperator *unused) BLI_strncpy(sfile->params->dir, tmpstr, sizeof(sfile->params->dir)); } } +#ifdef WIN32 + if (sfile->params->dir[0] == '\0') + get_default_root(sfile->params->dir); +#endif BLI_add_slash(sfile->params->dir); file_change_dir(sfile); WM_event_add_notifier(C, NC_FILE|ND_FILELIST, NULL); |