Check if chart needs to be saved upon close action
This commit is contained in:
parent
1c84845fa2
commit
e2701396cc
@ -156,11 +156,12 @@ ag_window_close_action(GSimpleAction *action,
|
|||||||
GVariant *parameter,
|
GVariant *parameter,
|
||||||
gpointer user_data)
|
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));
|
gtk_widget_destroy(GTK_WIDGET(window));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ag_window_export(AgWindow *window, GError **err)
|
ag_window_export(AgWindow *window, GError **err)
|
||||||
|
Loading…
Reference in New Issue
Block a user