[sysprof] libsysprof-ui: check current page when checking if empty



commit 82f5da8fe129e07a6160cfff298b6a549d469e65
Author: Christian Hergert <chergert redhat com>
Date:   Mon May 20 21:43:54 2019 -0700

    libsysprof-ui: check current page when checking if empty

 src/libsysprof-ui/sysprof-display.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libsysprof-ui/sysprof-display.c b/src/libsysprof-ui/sysprof-display.c
index 45cc6a3..88f737e 100644
--- a/src/libsysprof-ui/sysprof-display.c
+++ b/src/libsysprof-ui/sysprof-display.c
@@ -421,6 +421,7 @@ sysprof_display_is_empty (SysprofDisplay *self)
 
   return priv->file == NULL &&
          priv->profiler == NULL &&
+         gtk_stack_get_visible_child (priv->stack) == GTK_WIDGET (priv->assistant) &&
          NULL == sysprof_capture_view_get_reader (priv->capture_view);
 }
 


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