Commit abf0c33a authored by Christian Hergert's avatar Christian Hergert

project-tree: save buffer first when renaming file

parent 271f858b
......@@ -246,11 +246,16 @@ close_matching_pages (GtkWidget *widget,
if (!IDE_IS_EDITOR_PAGE (page))
return;
if (!(this_file = ide_editor_page_get_file (IDE_EDITOR_PAGE (page))))
this_file = ide_editor_page_get_file (IDE_EDITOR_PAGE (page));
if (this_file == NULL)
return;
if (g_file_equal (this_file, file))
gtk_widget_destroy (widget);
{
IdeBuffer *buffer = ide_editor_page_get_buffer (IDE_EDITOR_PAGE (page));
ide_buffer_save_file_async (buffer, NULL, NULL, NULL, NULL, NULL);
gtk_widget_destroy (widget);
}
}
#define DEFINE_ACTION_HANDLER(short_name, BODY) \
......
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