Add _xed_document_needs_saving

Based on acbf4d4f0c
This commit is contained in:
JosephMcc
2017-01-29 03:28:52 -08:00
parent 511fc3dfec
commit 5071bfe065
4 changed files with 140 additions and 147 deletions

View File

@@ -2501,10 +2501,12 @@ _xed_tab_can_close (XedTab *tab)
doc = xed_tab_get_document (tab);
/* TODO: we need to save the file also if it has been externally
modified - Paolo (Oct 10, 2005) */
if (_xed_document_needs_saving (doc))
{
return FALSE;
}
return (!gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (doc)) && !xed_document_get_deleted (doc));
return TRUE;
}
/**