[grisbi-cvs] grisbi/src gsb_account.c,1.44,1.45

Pierre Biava pbiava at users.sourceforge.net
Fri May 8 19:20:21 CEST 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9726

Modified Files:
	gsb_account.c 
Log Message:
Test Optimization

Index: gsb_account.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_account.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- gsb_account.c	27 Apr 2009 19:41:03 -0000	1.44
+++ gsb_account.c	8 May 2009 17:20:19 -0000	1.45
@@ -48,6 +48,7 @@
 #include "./fenetre_principale.h"
 #include "./gsb_form_scheduler.h"
 #include "./include.h"
+#include "./structures.h"
 #include "./gsb_real.h"
 #include "./gsb_data_account.h"
 /*END_INCLUDE*/
@@ -144,7 +145,8 @@
 	gsb_account_property_fill_page ();
     }
 
-    modification_fichier ( TRUE );
+    if ( etat.modification_fichier == 0 )
+        modification_fichier ( TRUE );
     return TRUE;
 }
 
@@ -176,9 +178,9 @@
     /* if the last account, close the file */
     if ( gsb_data_account_get_accounts_amount () == 1 )
     {
-	modification_fichier ( FALSE );
-	gsb_file_close ();
-	return FALSE;
+        modification_fichier ( FALSE );
+        gsb_file_close ();
+        return FALSE;
     }
 
     /* delete the schedules transactions on that account */
@@ -262,7 +264,8 @@
     /* Update navigation pane. */
     gsb_gui_navigation_remove_account ( deleted_account );
 
-    modification_fichier( TRUE ); 
+    if ( etat.modification_fichier == 0 )
+        modification_fichier ( TRUE );
     return FALSE;
 }
 



More information about the cvs mailing list