SF.net SVN: geany:[5770] branches/0.20.1

eht16 at users.sourceforge.net eht16 at xxxxx
Sun May 8 17:03:34 UTC 2011


Revision: 5770
          http://geany.svn.sourceforge.net/geany/?rev=5770&view=rev
Author:   eht16
Date:     2011-05-08 17:03:33 +0000 (Sun, 08 May 2011)

Log Message:
-----------
Add a warning if writing the project file fails on close.

Modified Paths:
--------------
    branches/0.20.1/ChangeLog
    branches/0.20.1/src/project.c

Modified: branches/0.20.1/ChangeLog
===================================================================
--- branches/0.20.1/ChangeLog	2011-05-08 17:02:03 UTC (rev 5769)
+++ branches/0.20.1/ChangeLog	2011-05-08 17:03:33 UTC (rev 5770)
@@ -15,6 +15,7 @@
  * src/project.c:
    Improve error checking when trying to write project files
    (patch by Colomban Wendling, thanks).
+   Add a warning if writing the project file fails on close.
 
 
 2011-01-05  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: branches/0.20.1/src/project.c
===================================================================
--- branches/0.20.1/src/project.c	2011-05-08 17:02:03 UTC (rev 5769)
+++ branches/0.20.1/src/project.c	2011-05-08 17:03:33 UTC (rev 5770)
@@ -347,7 +347,8 @@
 	ui_set_statusbar(TRUE, _("Project \"%s\" closed."), app->project->name);
 
 	/* use write_config() to save project session files */
-	write_config(FALSE);
+	if (!write_config(FALSE))
+		g_warning("Project file \"%s\" could not be written", app->project->file_name);
 
 	/* remove project filetypes build entries */
 	if (app->project->build_filetypes_list != NULL)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list