X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=write_common.c;h=a1aac65e3ddab78e0516c515dd1a6e75c9793b79;hp=a4f908acc187d3a3e96b831fdbafa45ec0c7bd02;hb=9c00a79ed817c854ed10ee6bd1b908df8dc13a2f;hpb=24758c5f17064273786e704b84ceff56c234e347 diff --git a/write_common.c b/write_common.c index a4f908ac..a1aac65e 100644 --- a/write_common.c +++ b/write_common.c @@ -113,8 +113,14 @@ void register_writer_node(struct writer_node *wn, struct btr_node *parent, .handler = w->execute, .context = wn)); strcpy(wn->task.status, name); free(name); - wn->task.post_select = w->post_select; wn->task.pre_select = w->pre_select; + if (w->new_post_select) { + wn->task.new_post_select = w->new_post_select; + wn->task.post_select = NULL; + } else { + wn->task.new_post_select = NULL; + wn->task.post_select = w->post_select; + } register_task(s, &wn->task); }