From 8e35d530cb1d8c0b0d24fa82ca3b0fd192fa3587 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 9 Apr 2004 11:37:43 +0000 Subject: [PATCH] Patch level : 2.1 path 22 Files correlati : ba0.exe Ricompilazione Demo : [ ] Commento : Corretta segnalazione moduli da aggiornare git-svn-id: svn://10.65.10.50/trunk@11959 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ba/ba0100.cpp | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/ba/ba0100.cpp b/ba/ba0100.cpp index a816cad0d..4a055e3ea 100755 --- a/ba/ba0100.cpp +++ b/ba/ba0100.cpp @@ -866,10 +866,13 @@ bool TMenu_application::test_programs() TConfig install("install.ini", "Main"); TFilename remote_name = install.get("DiskPath"); remote_name.add("install.ini"); + if (remote_name.exist()) { TProgind pi(3, TR("Controllo aggiornamento programmi"), FALSE, TRUE); - TConfig remote_install(remote_name, "Main"); + TConfig remote_install(remote_name, "Main"); + remote_install.write_protect(); + TAssoc_array my_modules, his_modules; pi.addstatus(1); install.for_each_paragraph(get_module_version, &my_modules); @@ -877,6 +880,10 @@ bool TMenu_application::test_programs() remote_install.for_each_paragraph(get_module_version, &his_modules); pi.addstatus(1); TScanner scan(AUT_FILE); + + TString msg = TR("I seguenti moduli devono essere aggiornati prima dell'utilizzo:"); + int update_needed = 0; + for (int module = 0; scan.line().not_empty(); module++) { if (dongle().active(module)) @@ -892,12 +899,28 @@ bool TMenu_application::test_programs() if (!v1.blank() && compare_version(v1, p1, v2, p2) < 0) { dangerous.add(code); - const TString& name = scan.token().mid(3); if (!more) - warning_box("ATTENZIONE: Il modulo %s\ndeve essere aggiornato prima di poterlo utilizzare.", (const char*)name); + { + const TString& name = scan.token().mid(3); + if (msg.len() < 200) + { + if (update_needed > 0) + msg << ','; + msg << name; + } + else + { + if (msg.right(1) != ".") + msg << ",etc."; + } + update_needed++; + } } } } + + if (update_needed > 0) + warning_box(msg); } if (more)