mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: give SysprofDocument a title
This commit is contained in:
@ -460,6 +460,13 @@ sysprof_document_loader_load_document_cb (GObject *object,
|
||||
{
|
||||
g_task_return_error (task, g_steal_pointer (&error));
|
||||
set_progress (1., _("Loading failed"), self);
|
||||
return;
|
||||
}
|
||||
|
||||
if (self->filename != NULL)
|
||||
{
|
||||
g_autofree char *title = g_path_get_basename (self->filename);
|
||||
_sysprof_document_set_title (document, title);
|
||||
}
|
||||
|
||||
self->symbolizing = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user