aboutsummaryrefslogtreecommitdiffstats
path: root/trace-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-view.c')
-rw-r--r--trace-view.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/trace-view.c b/trace-view.c
index 3c023e5..899b3b3 100644
--- a/trace-view.c
+++ b/trace-view.c
@@ -271,6 +271,7 @@ void trace_view_make_selection_visible(GtkWidget *treeview)
271void trace_view_update_task_filter(GtkWidget *treeview, struct filter_task *filter) 271void trace_view_update_task_filter(GtkWidget *treeview, struct filter_task *filter)
272{ 272{
273 GtkTreeView *tree = GTK_TREE_VIEW(treeview); 273 GtkTreeView *tree = GTK_TREE_VIEW(treeview);
274 TraceViewRecord *vrec;
274 GtkTreeModel *model; 275 GtkTreeModel *model;
275 guint64 time; 276 guint64 time;
276 gint row; 277 gint row;
@@ -281,8 +282,10 @@ void trace_view_update_task_filter(GtkWidget *treeview, struct filter_task *filt
281 282
282 /* Keep track of the currently selected row */ 283 /* Keep track of the currently selected row */
283 row = trace_view_get_selected_row(treeview); 284 row = trace_view_get_selected_row(treeview);
284 if (row >= 0) 285 if (row >= 0) {
285 time = trace_view_store_get_time_from_row(TRACE_VIEW_STORE(model), row); 286 vrec = trace_view_store_get_row(TRACE_VIEW_STORE(model), row);
287 time = vrec->timestamp;
288 }
286 289
287 g_object_ref(model); 290 g_object_ref(model);
288 gtk_tree_view_set_model(tree, NULL); 291 gtk_tree_view_set_model(tree, NULL);