Commit e3880748 authored by Kristian Rietveld's avatar Kristian Rietveld Committed by Kristian Rietveld
Browse files

Make sure we always update the virtual root, also when ->priv->root is

2006-02-21  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
	Make sure we always update the virtual root, also when ->priv->root
	is still NULL.  (Markku Vire)
parent 77ae64b8
2006-02-21 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
Make sure we always update the virtual root, also when ->priv->root
is still NULL. (Markku Vire)
2006-02-21 Anders Carlsson <andersca@imendio.com> 2006-02-21 Anders Carlsson <andersca@imendio.com>
* gdk/quartz/gdkselection-quartz.c: * gdk/quartz/gdkselection-quartz.c:
......
2006-02-21 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
Make sure we always update the virtual root, also when ->priv->root
is still NULL. (Markku Vire)
2006-02-21 Anders Carlsson <andersca@imendio.com> 2006-02-21 Anders Carlsson <andersca@imendio.com>
* gdk/quartz/gdkselection-quartz.c: * gdk/quartz/gdkselection-quartz.c:
......
...@@ -1910,9 +1910,6 @@ gtk_tree_model_filter_rows_reordered (GtkTreeModel *c_model, ...@@ -1910,9 +1910,6 @@ gtk_tree_model_filter_rows_reordered (GtkTreeModel *c_model,
if (c_path == NULL || gtk_tree_path_get_indices (c_path) == NULL) if (c_path == NULL || gtk_tree_path_get_indices (c_path) == NULL)
{ {
if (!filter->priv->root)
return;
length = gtk_tree_model_iter_n_children (c_model, NULL); length = gtk_tree_model_iter_n_children (c_model, NULL);
if (filter->priv->virtual_root) if (filter->priv->virtual_root)
...@@ -2009,7 +2006,7 @@ gtk_tree_model_filter_rows_reordered (GtkTreeModel *c_model, ...@@ -2009,7 +2006,7 @@ gtk_tree_model_filter_rows_reordered (GtkTreeModel *c_model,
} }
} }
if (level->array->len < 1) if (!level || level->array->len < 1)
{ {
gtk_tree_path_free (path); gtk_tree_path_free (path);
return; return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment