From acf64b46e6169ed62322291b807f7ced2d4fea9c Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sun, 26 May 2019 23:45:43 -0700 Subject: [PATCH] libsysprof-ui: hide logs view when no logs are present --- src/libsysprof-ui/sysprof-capture-view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libsysprof-ui/sysprof-capture-view.c b/src/libsysprof-ui/sysprof-capture-view.c index 76a755ba..c43713ec 100644 --- a/src/libsysprof-ui/sysprof-capture-view.c +++ b/src/libsysprof-ui/sysprof-capture-view.c @@ -486,6 +486,9 @@ sysprof_capture_view_scan_finish (SysprofCaptureView *self, if (!priv->features.has_samples) gtk_widget_hide (GTK_WIDGET (priv->callgraph_view)); + if (!priv->features.has_logs) + gtk_widget_hide (GTK_WIDGET (priv->logs_view)); + if (!priv->features.has_marks && !priv->features.has_forks) gtk_widget_hide (GTK_WIDGET (priv->marks_view));