Corretto loop infinito della maschera di ricerca

git-svn-id: svn://10.65.10.50/trunk@1110 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1995-03-13 11:38:35 +00:00
parent c73b60184c
commit 8c143f6348
2 changed files with 3 additions and 5 deletions

View File

@ -1186,7 +1186,7 @@ bool TPrimanota_application::caus_query_handler(TMask_field& f, KEY key)
if (i != iva_errata)
{
const bool ok = suspended_handler(f, key); // Controlla sospensione
if (ok)
if (ok && key == K_TAB)
f.mask().stop_run(K_INS); // Entra in modo inserimento
}
else

View File

@ -259,10 +259,8 @@ bool TPrimanota_application::read_scadenze(const TMask& m)
char sezione = _rel->cg(0).get_char("SEZIONE"); // Dare/Avere
char tipocf = _rel->cg(0).get_char("TIPOC"); // Cliente || Fornitore || Uncazzo
int gruppo = (tipocf == 'C' || tipocf == 'F') ? 0 :
_rel->cg(0).get_char("GRUPPO");
int conto = (tipocf == 'C' || tipocf == 'F') ? 0 :
_rel->cg(0).get_char("CONTO");
int gruppo = (tipocf == 'C' || tipocf == 'F') ? 0 : _rel->cg(0).get_char("GRUPPO");
int conto = (tipocf == 'C' || tipocf == 'F') ? 0 : _rel->cg(0).get_char("CONTO");
long sottoconto = _rel->cg(0).get_long("SOTTOCONTO");
int nriga = 1;
int numrig = 1;