Check if chart needs to be saved upon close action

This commit is contained in:
Gergely Polonkai 2014-08-02 19:54:30 +02:00
parent 1c84845fa2
commit e2701396cc

View File

@ -156,10 +156,11 @@ ag_window_close_action(GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
{
AgWindow *window = user_data;
AgWindow *window = AG_WINDOW(user_data);
// TODO: Save unsaved changes!
if (ag_window_can_close(window, TRUE)) {
gtk_widget_destroy(GTK_WIDGET(window));
}
}
static void