Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2009-07-10 23:52:00 +0400
committerAndrea Weikert <elubie@gmx.net>2009-07-10 23:52:00 +0400
commita95c68a3eaa692f742e7f2e626b65daa71727c17 (patch)
tree104a242a6dbda0cc801041f18f60a292207a6242
parentac11d522c8cad7eeabe07e643effbc776e933728 (diff)
2.5 file browser
* bugfix: set the directory to the default root when directory button is empty
-rw-r--r--source/blender/editors/space_file/file_ops.c4
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);