Riportate modifiche per implementazione metodo TConfig::write_protect()
git-svn-id: svn://10.65.10.50/trunk@6032 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									fb4851514a
								
							
						
					
					
						commit
						a8752aec49
					
				| @ -147,6 +147,7 @@ bool TInstall_ini::update_prices(const char* from) | ||||
| {    | ||||
|   CHECK(fexist(from), "Can't find listino prezzi"); | ||||
|   TConfig from_ini(from); | ||||
| 	from_ini.write_protect(); | ||||
|   const TDate curr_date = get("Listino","Main"); | ||||
|   const TDate from_date = from_ini.get("Listino","Main"); | ||||
|   if (from_date < curr_date) | ||||
|  | ||||
| @ -83,6 +83,7 @@ TInstaller_mask* TInstaller_mask::_curr_mask = NULL; | ||||
| // Copia nello sheet i dati di un modulo prendendoli da un .ini
 | ||||
| bool TInstaller_mask::add_module(TConfig& ini, const TString& module, bool patch) | ||||
| { | ||||
|   ini.write_protect(); | ||||
|   bool ok = ini.set_paragraph(module); | ||||
|   if (ok) | ||||
|   {    | ||||
| @ -409,6 +410,7 @@ bool TInstaller_mask::install(const TString& module, int patchlevel) | ||||
|   { | ||||
|     TInstall_ini ini(ininame); | ||||
|      | ||||
|     ini.write_protect(); | ||||
|     if (!can_install(module, ini)) | ||||
|       return FALSE; | ||||
|    | ||||
| @ -525,6 +527,7 @@ bool TInstaller_mask::install(const TString& module, int patchlevel) | ||||
|     if (ok) | ||||
|     { | ||||
|       TInstall_ini ini(ininame); | ||||
|       ini.write_protect(); | ||||
|       if (!can_install(module, ini)) | ||||
|         return FALSE; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user