ag_app_import_chart() now saves the chart immediately after importing

This commit is contained in:
Gergely Polonkai 2014-08-03 11:03:23 +02:00
parent 35c7d32636
commit 0d1358303a

View File

@ -148,6 +148,7 @@ ag_app_import_chart(AgApp *app, GFile *file)
window = ag_app_create_window(app);
ag_window_set_chart(AG_WINDOW(window), chart);
ag_window_update_from_chart(AG_WINDOW(window));
g_action_group_activate_action(G_ACTION_GROUP(window), "save", NULL);
ag_window_change_tab(AG_WINDOW(window), "chart");
}