Fix crash when invoking File->Save from the menu

Operator can't call itself! Just call the actual exec function instead.
This commit is contained in:
Andrea Weikert 2010-04-19 18:11:00 +00:00
parent 454470e0bd
commit 37a1297a55

@ -1840,7 +1840,7 @@ static int wm_save_mainfile_invoke(bContext *C, wmOperator *op, wmEvent *event)
if (check_existing)
uiPupMenuSaveOver(C, op, name);
else {
WM_operator_call(C, op);
wm_save_as_mainfile_exec(C, op);
}
} else {
WM_event_add_fileselect(C, op);