diff --git a/cg/cg4300.cpp b/cg/cg4300.cpp index a9a76a154..987df97db 100755 --- a/cg/cg4300.cpp +++ b/cg/cg4300.cpp @@ -526,13 +526,15 @@ bool TLiquidazione_app::to_ditt_handler(TMask_field& f, KEY key) TArray_sheet* sh = app().get_ditte_sheet(); TMask& m = f.mask(); - sh->disable_check(); + sh->disable_check(); + sh->disable(DLG_USER); if (sh->run() == K_ENTER) { app().select_firm_range(m.get_long(CG43_FLD_DFR),sh->row(sh->selected()).get_long(1), (wht)m.get_int(CG43_RDB_VERS)); app().set_choice_limits(m); } + sh->enable(DLG_USER); } if (key == K_TAB && f.focusdirty()) { @@ -554,13 +556,15 @@ bool TLiquidazione_app::fr_ditt_handler(TMask_field& f, KEY key) TArray_sheet* sh = ((TLiquidazione_app&)main_app()).get_ditte_sheet(); sh->disable_check(); + sh->disable(DLG_USER); if (sh->run() == K_ENTER) { app().select_firm_range(sh->row(sh->selected()).get_long(1), m.get_long(CG43_FLD_DTO), (wht)m.get_int(CG43_RDB_VERS)); app().set_choice_limits(m); } - } + sh->enable(DLG_USER); + } else if (key == K_TAB && f.focusdirty()) { const long l = app().select_firm_range(m.get_long(CG43_FLD_DFR),