[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40462] trunk/blender/source/blender/ editors/space_file/file_ops.c: Fix #28549: file browser recent directories could include directory that
Brecht Van Lommel
brechtvanlommel at pandora.be
Thu Sep 22 17:46:43 CEST 2011
Revision: 40462
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40462
Author: blendix
Date: 2011-09-22 15:46:43 +0000 (Thu, 22 Sep 2011)
Log Message:
-----------
Fix #28549: file browser recent directories could include directory that
doesn't exist after cancelling make directory. Patch by Sergey.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_file/file_ops.c
Modified: trunk/blender/source/blender/editors/space_file/file_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_file/file_ops.c 2011-09-22 15:46:34 UTC (rev 40461)
+++ trunk/blender/source/blender/editors/space_file/file_ops.c 2011-09-22 15:46:43 UTC (rev 40462)
@@ -749,7 +749,9 @@
file_sfile_to_operator(op, sfile, filepath);
- fsmenu_insert_entry(fsmenu_get(), FS_CATEGORY_RECENT, sfile->params->dir,0, 1);
+ if (BLI_exist(sfile->params->dir))
+ fsmenu_insert_entry(fsmenu_get(), FS_CATEGORY_RECENT, sfile->params->dir, 0, 1);
+
BLI_make_file_string(G.main->name, filepath, BLI_get_folder_create(BLENDER_USER_CONFIG, NULL), BLENDER_BOOKMARK_FILE);
fsmenu_write_file(fsmenu_get(), filepath);
WM_event_fileselect_event(C, op, EVT_FILESELECT_EXEC);
More information about the Bf-blender-cvs
mailing list