Check if chart needs to be saved upon close action
This commit is contained in:
parent
1c84845fa2
commit
e2701396cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user