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:
authorTon Roosendaal <ton@blender.org>2009-02-14 13:03:24 +0300
committerTon Roosendaal <ton@blender.org>2009-02-14 13:03:24 +0300
commit699f8fe1045c2090b43d00167348b04c09093823 (patch)
tree2d778fe0e95829295e436f5c0a9bc9a6bd2d56f4 /source/blender/editors/space_file/file_ops.c
parentd875386b06325e551c397db4e6c6ae05d7e3ed32 (diff)
2.5
- Localview in 3d window back. Note: it puts entire area on localview, so it works nice for 4-split views as well. - Added 'save over' menu in filewindow F2 operator. Mostly to comply to 2.48... such things can be on the review list.
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r--source/blender/editors/space_file/file_ops.c8
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;
}