[geany/geany] 402249: Revert "Don't append file truncation warning if file doesn't exist"

Nick Treleaven git-noreply at xxxxx
Thu Jul 26 00:03:16 UTC 2012


Branch:      refs/heads/document-messages
Author:      Nick Treleaven <nick.treleaven at btinternet.com>
Committer:   Nick Treleaven <nick.treleaven at btinternet.com>
Date:        Mon, 06 Feb 2012 16:14:42
Commit:      402249f1b814952e80c8df01863450fe1cd41b93
             https://github.com/geany/geany/commit/402249f1b814952e80c8df01863450fe1cd41b93

Log Message:
-----------
Revert "Don't append file truncation warning if file doesn't exist"

This reverts commit 7cc443e1420b77d041815a464fe5b20bc62412f4.

Showing the truncation message only when the file exists doesn't work
when writing to a network file and the connection drops out (thanks to
Lex).


Modified Paths:
--------------
    src/document.c

Modified: src/document.c
3 files changed, 1 insertions(+), 2 deletions(-)
===================================================================
@@ -1767,8 +1767,7 @@ gboolean document_save_file(GeanyDocument *doc, gboolean force)
 	{
 		ui_set_statusbar(TRUE, _("Error saving file (%s)."), errmsg);
 
-		if (!file_prefs.use_safe_file_saving &&
-			g_file_test(locale_filename, G_FILE_TEST_IS_REGULAR))
+		if (!file_prefs.use_safe_file_saving)
 		{
 			SETPTR(errmsg,
 				g_strdup_printf(_("%s\n\nThe file on disk may now be truncated!"), errmsg));


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Commits mailing list