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:
authorAndrea Weikert <elubie@gmx.net>2010-04-15 00:27:45 +0400
committerAndrea Weikert <elubie@gmx.net>2010-04-15 00:27:45 +0400
commit72a73fc9fbbbf0496166be3ec623f722f1836530 (patch)
tree4b78d5198310acc23128eba04d768f51f14a62cf
parent3f4a28dcf1cd0e82a20871b8402aae8d7d495a3c (diff)
fix [#22007] Saving a read-only file on windows : no warning and temporary files left there
* return OPERATOR_FINISHED from file save, so reports are not suppressed - this results in popup with the expected error in this case.
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index d69ebb25acc..09f923a15f5 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -1796,7 +1796,7 @@ static int wm_save_as_mainfile_exec(bContext *C, wmOperator *op)
WM_event_add_notifier(C, NC_WM|ND_FILESAVE, NULL);
- return 0;
+ return OPERATOR_FINISHED;
}
static void WM_OT_save_as_mainfile(wmOperatorType *ot)