- [#22492] [29159] commit breaks importing of script file that has a reload to self...
[blender.git] / source / blender / windowmanager / intern / wm_operators.c
index 842e43b98cf3f66c5b5e3193a3ea92299a1e6277..4ab110cc27585916639bec45623b3df284301389 100644 (file)
@@ -1212,10 +1212,7 @@ 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<5) && (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);
+               uiItemStringO(col, BLI_path_basename(recent->filename), ICON_FILE_BLEND, "WM_OT_open_mainfile", "path", recent->filename);
        }
        uiItemS(col);
        uiItemO(col, NULL, ICON_RECOVER_LAST, "WM_OT_recover_last_session");