fix for using enter on menus which load files:

commonly Ctrl+N,Enter or Ctrl+O,Enter
This commit is contained in:
Campbell Barton
2011-04-23 03:31:27 +00:00
parent 1518d43f27
commit d494c97b58

View File

@@ -1537,6 +1537,12 @@ static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers)
}
}
/* XXX fileread case, if the wm is freed then the handler's
* will have been too so the code below need not run. */
if(CTX_wm_window(C)==NULL) {
return action;
}
/* XXX code this for all modal ops, and ensure free only happens here */
/* modal ui handler can be tagged to be freed */
@@ -1546,10 +1552,6 @@ static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers)
wm_event_free_handler(handler);
}
}
/* XXX fileread case */
if(CTX_wm_window(C)==NULL)
return action;
}
/* test for CLICK event */