Author: nick Date: 2008-11-27 17:17:38 +0000 (Thu, 27 Nov 2008) New Revision: 28927
Modified: thunar/trunk/thunar/thunar-tree-model.c Log: * Extra debug checks to get more information in bug #4051. Modified: thunar/trunk/thunar/thunar-tree-model.c =================================================================== --- thunar/trunk/thunar/thunar-tree-model.c 2008-11-27 14:54:19 UTC (rev 28926) +++ thunar/trunk/thunar/thunar-tree-model.c 2008-11-27 17:17:38 UTC (rev 28927) @@ -1758,8 +1758,9 @@ ThunarFile *file; _thunar_return_val_if_fail (model->visible_func != NULL, FALSE); + _thunar_return_val_if_fail (item == NULL || item->file == NULL || THUNAR_IS_FILE (item->file), FALSE); - if (G_LIKELY (item)) + if (G_LIKELY (item != NULL && item->file != NULL)) { /* check if this file should be visibily in the treeview */ if (!model->visible_func (model, item->file, model->visible_data)) @@ -1796,6 +1797,8 @@ lnext = lp->next; file = THUNAR_FILE (lp->data); + _thunar_return_val_if_fail (THUNAR_IS_FILE (file), FALSE); + if (model->visible_func (model, file, model->visible_data)) { /* allocate a new item for the file */ _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits