WM: correct the return flag from wm_handler_fileselect_do

In the unlikely case an area could not be created OPERATOR_CANCELLED
was returned, this has the same value of WM_HANDLER_HANDLED however
break is logical in this situation and both flags work.
This commit is contained in:
Campbell Barton 2023-02-05 21:03:19 +11:00
parent b2196ebe28
commit d6cd7d1138

@ -2643,7 +2643,7 @@ static int wm_handler_fileselect_do(bContext *C,
}
else {
BKE_report(&wm->reports, RPT_ERROR, "Failed to open window!");
return OPERATOR_CANCELLED;
return WM_HANDLER_BREAK;
}
action = WM_HANDLER_BREAK;