[sysprof] libsysprof-ui: hide logs view when no logs are present



commit acf64b46e6169ed62322291b807f7ced2d4fea9c
Author: Christian Hergert <chergert redhat com>
Date:   Sun May 26 23:45:43 2019 -0700

    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 76a755b..c43713e 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));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]