Commit dc0adb92 authored by Christian Hergert's avatar Christian Hergert

glade: fix error propagation when saving

We might have NULL here if the user chose not to save the changes.

Fixes #1028
parent 6ade58f6
......@@ -244,8 +244,13 @@ gbp_glade_page_agree_to_close_async (IdePage *view,
{
if (!_gbp_glade_page_save (self, &error))
{
ide_task_return_error (task, g_steal_pointer (&error));
return;
if (error != NULL)
{
ide_task_return_error (task, g_steal_pointer (&error));
return;
}
/* No was clicked on an internal glade save dialog, fallthrough */
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment