diff --git a/src/ag-app.c b/src/ag-app.c index 1ab89eb..84eb597 100644 --- a/src/ag-app.c +++ b/src/ag-app.c @@ -110,11 +110,15 @@ ag_app_open_chart(AgApp *app, GFile *file) GtkWidget *window; AgChart *chart; GError *err = NULL; + gchar *uri; chart = ag_chart_load_from_file(file, &err); window = ag_app_create_window(app); ag_window_set_chart(AG_WINDOW(window), chart); ag_window_update_from_chart(AG_WINDOW(window)); + uri = g_file_get_uri(file); + ag_window_set_uri(AG_WINDOW(window), uri); + g_free(uri); } static void