From: Melvin H. <mha...@us...> - 2003-08-19 11:10:10
|
Update of /cvsroot/libetpan/xetpan/src In directory sc8-pr-cvs1:/tmp/cvs-serv8340/src Modified Files: gtk-ui.c Log Message: - Be robust if no foldersview are defined Index: gtk-ui.c =================================================================== RCS file: /cvsroot/libetpan/xetpan/src/gtk-ui.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- gtk-ui.c 19 Aug 2003 08:42:54 -0000 1.32 +++ gtk-ui.c 19 Aug 2003 11:10:07 -0000 1.33 @@ -1238,6 +1238,9 @@ cntree *tree; GtkTreeStore *store = fview->store; + if (foldersview == NULL) + return; + tree = foldersview->tree; gtk_tree_store_clear(store); GtkUI_foldersview_append_node(tree, store, NULL); @@ -1299,6 +1302,9 @@ cntree *child; clistiter *iter; XePFoldersViewNode *fnode; + + if (tree == NULL) + return; fnode = (XePFoldersViewNode *) tree->data; if (fnode) |