From 72a73fc9fbbbf0496166be3ec623f722f1836530 Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Wed, 14 Apr 2010 20:27:45 +0000 Subject: 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. --- source/blender/windowmanager/intern/wm_operators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3