Save document on modification.

This commit is contained in:
Ulrich Eckhardt 2014-11-14 23:43:54 +01:00
parent ea8713c43f
commit 45d9cf5ebf

View File

@ -488,7 +488,14 @@ static void
modified_changed_cb (GtkTextBuffer *buffer,
MooEdit *edit)
{
moo_edit_set_modified (edit, gtk_text_buffer_get_modified (buffer));
if (1)
{
moo_edit_save(edit, NULL);
}
else
{
moo_edit_set_modified (edit, gtk_text_buffer_get_modified (buffer));
}
}