SF.net SVN: geany-plugins:[1883] trunk/geany-plugins/geanycfp/src/geanycfp. c
wfraser at users.sourceforge.net
wfraser at xxxxx
Fri Jan 28 22:19:33 UTC 2011
Revision: 1883
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1883&view=rev
Author: wfraser
Date: 2011-01-28 22:19:32 +0000 (Fri, 28 Jan 2011)
Log Message:
-----------
fixed bug spotting if a file has been changed since it was last edited in geany, which was resulting in all newly encountered files to flag as having been changed
Modified Paths:
--------------
trunk/geany-plugins/geanycfp/src/geanycfp.c
Modified: trunk/geany-plugins/geanycfp/src/geanycfp.c
===================================================================
--- trunk/geany-plugins/geanycfp/src/geanycfp.c 2011-01-27 21:00:57 UTC (rev 1882)
+++ trunk/geany-plugins/geanycfp/src/geanycfp.c 2011-01-28 22:19:32 UTC (rev 1883)
@@ -1156,7 +1156,8 @@
/* check to see if file has changed since geany last saved it */
fd=GetFileData(doc->file_name);
- if(stat(doc->file_name,&sBuf)==0 && fd!=NULL && fd->LastChangedTime!=sBuf.st_mtime)
+ if(stat(doc->file_name,&sBuf)==0 && fd!=NULL && fd->LastChangedTime!=-1 &&
+ fd->LastChangedTime!=sBuf.st_mtime)
{
/* notify user that file has been changed */
dialog=gtk_message_dialog_new(GTK_WINDOW(geany->main_widgets->window),
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list