diff --git a/ba/ba0100.cpp b/ba/ba0100.cpp index 12fbbc629..1b0a6e7cf 100755 --- a/ba/ba0100.cpp +++ b/ba/ba0100.cpp @@ -1337,10 +1337,10 @@ bool TMenu_application::copy_setup(const TString& remote_path) TFilename strsrc, strdst; FOR_EACH_ARRAY_ROW (ar, i, row) { - const char* n = strsrc.name(); - if (xvt_str_compare_ignoring_case(n, "Thumbs.db") == 0) - continue; strsrc = *row; + const TFixed_string n = strsrc.name(); + if (n.blank() || n.compare("Thumbs.db", -1, true) == 0) + continue; strdst = local_setupdir; strdst.add(n); //se la copia dei files si inchioda esce diff --git a/ba/ba0102.cpp b/ba/ba0102.cpp index acc8046d2..c0caadc43 100755 --- a/ba/ba0102.cpp +++ b/ba/ba0102.cpp @@ -1040,8 +1040,7 @@ bool TSpidey_mask::stop_run(KEY k) if (ADVANCED_GRAPHICS) { const int divider = 8; - const WINDOW window[4] = { win(), dlg2win(101), - dlg2win(102), dlg2win(103) }; + const WINDOW window[4] = { win(), dlg2win(101), dlg2win(102), dlg2win(103) }; XVT_IMAGE image[4]; memset(image, 0, sizeof(image)); int i; for (i = 0; i < 4; i++) diff --git a/ba/ba0103.cpp b/ba/ba0103.cpp index f14a1b866..1f921e786 100755 --- a/ba/ba0103.cpp +++ b/ba/ba0103.cpp @@ -333,6 +333,12 @@ void TBook_window::erode_antipa() xvt_vobj_destroy(_ctrl); _ctrl = NULL_WIN; enable_options_menu(true); // Riabilita le opzioni + + // Controlla se qualche simpaticone ha cambiato ditta a nostra insaputa + const long dt = main_app().get_firm(); + const long di = ini_get_int(CONFIG_INSTALL, "Main", "Firm"); + if (di > 0 && dt > 0 && di != dt) + main_app().set_firm(di); } } @@ -722,7 +728,7 @@ bool TOutlook_mask::on_field_event(TOperable_field& o, TField_event e, long joll { if (mi.is_submenu()) { - if (!_tree.expanded()) + if (!_tree.expanded() || mi.child_submenu()->query_firm()) mi.perform(); } else @@ -775,8 +781,11 @@ bool TOutlook_mask::on_field_event(TOperable_field& o, TField_event e, long joll } } } - if (e == fe_modify) // Permette l'aggiunta ai preferiti per i non NON radice + if (e == fe_modify) + { + // Permette l'aggiunta ai preferiti per i non NON radice main_app().enable_menu_item(30005, _tree.has_father()); + } break; case DLG_LOOK: if (e == fe_modify) diff --git a/ba/ba1700.cpp b/ba/ba1700.cpp index f90dbcc33..9b4bd79ed 100755 --- a/ba/ba1700.cpp +++ b/ba/ba1700.cpp @@ -180,26 +180,6 @@ bool TInstaller_mask::is_visible_patch(TConfig& ini) const bool yes = true; TAuto_token_string oem = ini.get("OEM"); - if (oem.blank()) - { - const TString& module = ini.get_paragraph(); - CHECKS(module.len() == 2, "Invalid module ", (const char*)module); - const int mod = dongle().module_name2code(module); - if (mod > BAAUT && mod < ENDAUT) - { - // Pezza temporanea: assegno OEM noti eventualmente assenti dalla patch - switch (mod) - { - case COAUT: oem = "5"; break; - case HAAUT: oem = "0,3"; break; - case LVAUT: oem = "2,4"; break; - case PEAUT: oem = "3"; break; - case RIAUT: oem = "0,6"; break; - default: break; - } - } - } - if (oem.full()) { const int my_oem = dongle().oem(); diff --git a/ba/ba4700a.uml b/ba/ba4700a.uml index 6ffe8256b..f376891ce 100644 --- a/ba/ba4700a.uml +++ b/ba/ba4700a.uml @@ -137,7 +137,7 @@ BEGIN PROMPT 1 10 "@bUfficio" END -STRING F_MAIL 30 +STRING F_MAIL 60 30 BEGIN PROMPT 2 11 "Mail " FIELD MAIL @@ -235,7 +235,7 @@ BEGIN PROMPT 1 1 "@bCasa" END -STRING F_MAIL2 30 +STRING F_MAIL2 60 30 BEGIN PROMPT 2 2 "Mail " FIELD MAIL2 diff --git a/ba/f170.dir b/ba/f170.dir index 23a83678a..1d2b73ca1 100644 --- a/ba/f170.dir +++ b/ba/f170.dir @@ -1,3 +1,3 @@ 170 0 -$contact|0|0|598|0|Contatti||| +$contact|0|0|658|0|Contatti||| diff --git a/ba/f170.trr b/ba/f170.trr index 72cdbeef9..7ea4a47cc 100644 --- a/ba/f170.trr +++ b/ba/f170.trr @@ -8,8 +8,8 @@ CODALT|1|20|0|Nome alternativo TIPOCF|1|1|0|Tipo Cliente/Fornitore (opzionale) CODCF|3|6|0|Codice cliente (opzionale) QUALIFICA|1|20|0|Qualifica -MAIL|1|30|0|Mail Ufficio -MAIL2|1|30|0|Mail personale +MAIL|1|60|0|Mail Ufficio +MAIL2|1|60|0|Mail personale NUMTEL|1|30|0|Telefono Ufficio NUMCEL|1|30|0|Cellulare Ufficio NUMTEL2|1|30|0|Telefono Casa diff --git a/ba/install.ini b/ba/install.ini index 65e3b0e16..0a910088c 100755 --- a/ba/install.ini +++ b/ba/install.ini @@ -67,7 +67,7 @@ Descrizione = Tracciabilita' CUP - CIG [np] Descrizione = Gestione No-Profit -OEM = 0,0 +OEM = [gv] Descrizione = Gestione versamenti F24 @@ -107,7 +107,7 @@ Descrizione = Statistiche di Vendita [pe] Descrizione = Preventivazione -OEM=0,3 +OEM=3 [_area_magazzino_produzione] Descrizione=AREA MAGAZZINO E PRODUZIONE @@ -136,11 +136,11 @@ Descrizione = Trasferimento ad altre Contabilita' [co] Descrizione = Gestione cooperative pesca -OEM=0,5 +OEM=5 [ha] Descrizione = Caffe' Hardy -OEM=0,3 +OEM= [sy1] File(0) = ba0.exe