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:
authorCampbell Barton <ideasman42@gmail.com>2010-01-03 08:34:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-03 08:34:53 +0300
commit28c137a8ebf759f9dd1c91645c0f98d4cc83974c (patch)
treed9b9413119339e9c3802e11293e6e9d682dfcc7d /source/blender/windowmanager
parent833ec130a3248b97c0d6d5f58b2bb182b14b4c46 (diff)
bugfix [#20510] .blog file causes crash (again rev25592)
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index e9bf1be5861..1264639454b 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -957,8 +957,12 @@ static uiBlock *wm_block_create_splash(bContext *C, ARegion *ar, void *arg_unuse
col = uiLayoutColumn(split, 0);
uiItemL(col, "Recent", 0);
- for(recent = G.recent_files.first, i=0; (i<6) && (recent); recent = recent->next, i++)
- uiItemStringO(col, BLI_last_slash(recent->filename)+1, ICON_FILE_BLEND, "WM_OT_open_mainfile", "path", recent->filename);
+ for(recent = G.recent_files.first, i=0; (i<6) && (recent); recent = recent->next, i++) {
+ char *display_name= BLI_last_slash(recent->filename);
+ if(display_name) display_name++; /* skip the slash */
+ else display_name= recent->filename;
+ uiItemStringO(col, display_name, ICON_FILE_BLEND, "WM_OT_open_mainfile", "path", recent->filename);
+ }
uiItemS(col);