libsysprof-ui: check current page when checking if empty

This commit is contained in:
Christian Hergert
2019-05-20 21:43:54 -07:00
parent e2d5be5f52
commit 82f5da8fe1

View File

@ -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);
}