diff options
author | Ton Roosendaal <ton@blender.org> | 2008-09-14 13:09:10 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-09-14 13:09:10 +0400 |
commit | 2bf26b93e12de1382850712551ea7203c5b80692 (patch) | |
tree | 2b3d37fa551d6332b6ad01ec16d6bd381ac053ef /source/blender/src/filesel.c | |
parent | 375a6bbe415388866a43f86b935fb9b1fccf994b (diff) |
Bugfix #17608
Fileselect window:
Pressing X to remove a file should not work in databrowse view.
Diffstat (limited to 'source/blender/src/filesel.c')
-rw-r--r-- | source/blender/src/filesel.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/source/blender/src/filesel.c b/source/blender/src/filesel.c index 2ba5745b19b..cdb001d9193 100644 --- a/source/blender/src/filesel.c +++ b/source/blender/src/filesel.c @@ -2062,18 +2062,20 @@ void winqreadfilespace(ScrArea *sa, void *spacedata, BWinEvent *evt) break; case XKEY: - test = get_hilited_entry(sfile); + if(sfile->type==FILE_BLENDER) { + test = get_hilited_entry(sfile); - if (test != -1 && !(S_ISDIR(sfile->filelist[test].type))){ - BLI_make_file_string(G.sce, str, sfile->dir, sfile->filelist[test].relname); + if (test != -1 && !(S_ISDIR(sfile->filelist[test].type))){ + BLI_make_file_string(G.sce, str, sfile->dir, sfile->filelist[test].relname); - if( okee("Remove %s", str) ) { - ret = BLI_delete(str, 0, 0); - if (ret) { - error("Command failed, see console"); - } else { - freefilelist(sfile); - do_draw= 1; + if( okee("Remove %s", str) ) { + ret = BLI_delete(str, 0, 0); + if (ret) { + error("Command failed, see console"); + } else { + freefilelist(sfile); + do_draw= 1; + } } } } |