[evolution-patches] Patch to fix crash when expanding "On this Computer" in mailer
- From: Rodney Dawes <dobey ximian com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] Patch to fix crash when expanding "On this Computer" in mailer
- Date: Tue, 24 Feb 2004 00:52:32 -0500
This patch fixes the much disputed crashing in the treeview without
patching gtk+, as we are doing the wrong thing in camel also, when
loading local folders that don't actually have children, but we force
the CAMEL_FOLDER_CHILDREN flag even when the sub-directory is empty,
or only contains files that we want to ignore (those that being with a
period).
This also fixes the issues where folders would have an expander that
would do nothing when clicked (which is essentially what seems to be
causing the crash).
-- dobey
Index: providers/local/camel-mbox-store.c
===================================================================
RCS file: /cvs/gnome/evolution/camel/providers/local/camel-mbox-store.c,v
retrieving revision 1.29
diff -u -r1.29 camel-mbox-store.c
--- providers/local/camel-mbox-store.c 19 Feb 2004 18:58:18 -0000 1.29
+++ providers/local/camel-mbox-store.c 24 Feb 2004 05:22:04 -0000
@@ -742,6 +742,8 @@
if ((fi->child = scan_dir(store, visited, fi, path, fi->full_name, flags, ex)))
fi->flags |= CAMEL_FOLDER_CHILDREN;
+ else
+ fi->flags =(fi->flags & ~CAMEL_FOLDER_CHILDREN) | CAMEL_FOLDER_NOCHILDREN;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]