From cf884739f55648a65cc1bed87195816de6b9452d Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 13 May 2019 19:28:30 -0700 Subject: [PATCH] libsysprof-ui: setup marks reader --- src/libsysprof-ui/sysprof-capture-view.c | 10 +++++----- src/libsysprof-ui/sysprof-marks-model.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libsysprof-ui/sysprof-capture-view.c b/src/libsysprof-ui/sysprof-capture-view.c index b8900d36..6239086a 100644 --- a/src/libsysprof-ui/sysprof-capture-view.c +++ b/src/libsysprof-ui/sysprof-capture-view.c @@ -374,11 +374,11 @@ sysprof_capture_view_load_scan_cb (GObject *object, g_object_ref (task)); } - if (priv->features.has_counters) - { - state->n_active++; - sysprof_visualizer_view_set_reader (priv->visualizer_view, state->reader); - } + if (priv->features.has_counters || priv->features.has_marks) + sysprof_visualizer_view_set_reader (priv->visualizer_view, state->reader); + + if (priv->features.has_marks) + sysprof_marks_view_set_reader (priv->marks_view, state->reader); if (state->n_active == 0) g_task_return_boolean (task, TRUE); diff --git a/src/libsysprof-ui/sysprof-marks-model.c b/src/libsysprof-ui/sysprof-marks-model.c index 17ee2cf1..e76aac05 100644 --- a/src/libsysprof-ui/sysprof-marks-model.c +++ b/src/libsysprof-ui/sysprof-marks-model.c @@ -345,7 +345,7 @@ sysprof_marks_model_new_async (SysprofCaptureReader *reader, task = g_task_new (NULL, cancellable, callback, user_data); g_task_set_source_tag (task, sysprof_marks_model_new_async); g_task_set_task_data (task, - sysprof_capture_reader_copy (reader), + sysprof_capture_reader_ref (reader), (GDestroyNotify) sysprof_capture_reader_unref); g_task_run_in_thread (task, sysprof_marks_model_new_worker); }