X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=filter.c;h=07b78aed59e5d2a04c400003d2136cd2e956a1c4;hp=38122977f4bad9f0982fe30594e4f36c50c64176;hb=c77e19b4568a32923c0fe43503a4266363056a41;hpb=ff12b505b227585daf5aecc822d6b2e8841c2be7 diff --git a/filter.c b/filter.c index 38122977..07b78aed 100644 --- a/filter.c +++ b/filter.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2012 Andre Noll + * Copyright (C) 2005-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -140,7 +140,13 @@ int main(int argc, char *argv[]) EMBRACE(.name = f->name, .parent = parent, .handler = f->execute, .context = fn)); fn->task.pre_select = f->pre_select; - fn->task.post_select = f->post_select; + if (f->new_post_select) { + fn->task.new_post_select = f->new_post_select; + fn->task.post_select = NULL; + } else { + fn->task.new_post_select = NULL; + fn->task.post_select = f->post_select; + } f->open(fn); register_task(&s, &fn->task); parent = fn->btrn;