Theme filter and child actions

Topics: Writing themes
Nov 5, 2015 at 7:48 AM
Hi, is it possible to filter out child actions from them processing?
Child actions never need theme I think, but now we have to relocate them to a separate controller or remove the themed attribute from a contoroller that contains chilnd actions.
I suggest the following:
public class ThemeFilter : FilterProvider, IActionFilter, IResultFilter {
    public void OnActionExecuting(ActionExecutingContext filterContext) {
        //child actions should not be themed
        if (filterContext.IsChildAction) return;

Is this correct?