/*
* This file is part of DisOrder
- * Copyright (C) 2006 Richard Kettlewell
+ * Copyright (C) 2006, 2007 Richard Kettlewell
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/* Forward Declarations */
+static void clear_children(struct choosenode *cn);
static struct choosenode *newnode(struct choosenode *parent,
const char *path,
const char *display,
struct callbackdata *cbd;
D(("fill_root_node"));
+ clear_children(cn);
if(choosealpha) {
if(!cn->children.nvec) { /* Only need to do this once */
for(ch = 'A'; ch <= 'Z'; ++ch) {
/* TODO: de-dupe against fill_letter_node */
assert(report_label != 0);
gtk_label_set_text(GTK_LABEL(report_label), "getting files");
- cn->children.nvec = 0;
+ clear_children(cn);
cbd = xmalloc(sizeof *cbd);
cbd->u.choosenode = cn;
disorder_eclient_dirs(client, got_dirs, cn->path, 0, cbd);
indent-tabs-mode:nil
End:
*/
-/* arch-tag:A5KX3X9SR8Pl57VRLSnCng */