Branch: refs/heads/master Author: Nick Treleaven nick.treleaven@btinternet.com Committer: Nick Treleaven nick.treleaven@btinternet.com Date: Tue, 30 Sep 2014 16:10:53 UTC Commit: 541cb8dbccdab127a08e63855cea00f0f5608787 https://github.com/geany/geany/commit/541cb8dbccdab127a08e63855cea00f0f56087...
Log Message: ----------- Force disk check before save to prevent accidental overwriting
Useful e.g. with Save All when the modified file is not the current tab.
Modified Paths: -------------- src/document.c
Modified: src/document.c 3 lines changed, 1 insertions(+), 2 deletions(-) =================================================================== @@ -1937,10 +1937,9 @@ gboolean document_save_file(GeanyDocument *doc, gboolean force) _("Cannot save read-only document '%s'!"), DOC_FILENAME(doc)); return FALSE; } + document_check_disk_status(doc, TRUE); if (doc->priv->protected) - { return save_file_handle_infobars(doc, force); - }
fp = project_get_file_prefs(); /* replaces tabs with spaces but only if the current file is not a Makefile */
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).