diff options
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index 2a95a1e15a1..b584524e396 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -45,6 +45,7 @@ #include "RNA_access.h" #include "RNA_define.h" +#include "UI_interface.h" #include "UI_view2d.h" #include "WM_api.h" @@ -495,11 +496,10 @@ int file_load_exec(bContext *C, wmOperator *unused) strcat(name, sfile->params->file); RNA_string_set(op->ptr, "filename", name); - op->type->exec(C, op); - - WM_operator_free(op); + /* this gives ownership to pupmenu */ + uiPupMenuSaveOver(C, op, name); } - + return OPERATOR_FINISHED; } |