Fix bug retrieving bad PID from treeview

Use the model_filter to retrieve the correct selected path and therefore
the right PID.
This commit is contained in:
Mike Massonnet
2010-05-21 16:08:10 +02:00
parent a0ed1ca721
commit ee0e367f07

View File

@@ -336,7 +336,7 @@ treeview_clicked (XtmProcessTreeView *treeview, GdkEventButton *event)
GtkTreePath *path;
GtkTreeIter iter;
model = GTK_TREE_MODEL (treeview->model);
model = GTK_TREE_MODEL (treeview->model_filter);
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (treeview), (gint)event->x, (gint)event->y, &path, NULL, NULL, NULL);