diff --git a/ce/ce1500.cpp b/ce/ce1500.cpp index 6c711a9cf..364a31f7e 100755 --- a/ce/ce1500.cpp +++ b/ce/ce1500.cpp @@ -157,7 +157,7 @@ bool TMov_qmask::on_field_event(TOperable_field& o, TField_event e, long jolly) { case F_ESERCIZIO: if ((e == fe_close || e == fe_modify) && efield(F_INIZIO_ES).empty()) - return error_box("Inserire un esercizio valido"); + return error_box(TR("Inserire un esercizio valido")); if (e == fe_init || e == fe_modify) { int esercizio = get_int(F_ESERCIZIO); @@ -168,13 +168,16 @@ bool TMov_qmask::on_field_event(TOperable_field& o, TField_event e, long jolly) if (gruppo.full()) { set(F_GRUPPO, gruppo); - set(F_SPECIE, specie); + set(F_SPECIE, specie.rtrim(), 0x3); } } //niente break!!!!! è fatto apposta per far scattare i successivi controlli su gruppo e specie case F_GRUPPO: case F_SPECIE: - calcola_stato_attivita(); - enable(DLG_NEWREC, _staat != 3); + if (e == fe_init || e == fe_modify) + { + const int sa = calcola_stato_attivita(); + enable(DLG_NEWREC, sa != 3); + } break; case F_IMPIANTO: case F_IDCESPITE: