From ee0e367f076757823c6c13756df1156ee69d6ccc Mon Sep 17 00:00:00 2001 From: Mike Massonnet Date: Fri, 21 May 2010 16:08:10 +0200 Subject: [PATCH] Fix bug retrieving bad PID from treeview Use the model_filter to retrieve the correct selected path and therefore the right PID. --- src/process-tree-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process-tree-view.c b/src/process-tree-view.c index bb99512..7a565f4 100644 --- a/src/process-tree-view.c +++ b/src/process-tree-view.c @@ -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);