Correto errore MI0604

git-svn-id: svn://10.65.10.50/trunk@1188 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1995-03-29 15:17:00 +00:00
parent f51135451c
commit 2267ea7e54

View File

@ -91,37 +91,37 @@ void TConfig_application::do_config(int m)
int k = m.run();
if (!postprocess_config(m,cnf))
break;
bool tosave = k == K_ENTER || k == K_SAVE;
if (k == K_ENTER || k == K_QUIT)
{
// aggiusta campi
for (i = 0; i < m.fields(); i++)
bool tosave = k == K_ENTER || k == K_SAVE;
if (k == K_ENTER || k == K_QUIT)
{
TMask_field& f = m.fld(i);
if (f.dirty())
// aggiusta campi
for (i = 0; i < m.fields(); i++)
{
const TFieldref* fref = f.field();
if (fref != NULL)
TMask_field& f = m.fld(i);
if (f.dirty())
{
const char* fname = fref->name();
const char* value = f.get();
const char* oldvl = cnf.get(fname);
if (!tosave)
tosave = yesno_box("Modifiche non registrate. Salvare?");
if (!tosave) break;
if (postprocess_config_changed(par,fname, oldvl,value))
cnf.set(fname, value, NULL, TRUE);
const TFieldref* fref = f.field();
if (fref != NULL)
{
const char* fname = fref->name();
const char* value = f.get();
const char* oldvl = cnf.get(fname);
if (!tosave)
tosave = yesno_box("Modifiche non registrate. Salvare?");
if (!tosave) break;
if (postprocess_config_changed(par,fname, oldvl,value))
cnf.set(fname, value, NULL, TRUE);
}
}
}
}
}
else break;
else break;
}
if (k == K_QUIT)
break comunque;
}