diff options
author | Thomas Dinges <blender@dingto.org> | 2009-09-12 01:02:31 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-09-12 01:02:31 +0400 |
commit | f0eb02a36b5a04d18a1a587b1e36419daa6a6f23 (patch) | |
tree | 892acc729e0d1899e4425b0cbc0b8621fedeba0b /source | |
parent | 16547da5a98651c99f7bda088144292d4eba3904 (diff) |
2.5
Revert some changes from commit 23090. Make sure you update SVN before you commit!!
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 6debe5a8825..77f4fe25606 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -803,7 +803,7 @@ static int recentfile_exec(bContext *C, wmOperator *op) WM_read_file(C, G.sce, op->reports); } else { - struct RecentFile *recent = BLI_findlink(&(G.recent_files), event-2); + struct RecentFile *recent = BLI_findlink(&(G.recent_files), event-1); if(recent) { WM_event_add_notifier(C, NC_WINDOW, NULL); WM_read_file(C, recent->filename, op->reports); @@ -831,11 +831,11 @@ static EnumPropertyItem *open_recentfile_itemf(bContext *C, PointerRNA *ptr, int EnumPropertyItem tmp = {0, "", 0, "", ""}; EnumPropertyItem *item= NULL; struct RecentFile *recent; - int totitem= 0, i, ofs= 0; + int totitem= 0, i; /* dynamically construct enum */ for(recent = G.recent_files.first, i=0; (i<U.recent_files) && (recent); recent = recent->next, i++) { - tmp.value= i+ofs+1; + tmp.value= i+1; tmp.identifier= recent->filename; tmp.name= BLI_short_filename(recent->filename); RNA_enum_item_add(&item, &totitem, &tmp); |