Patch level : 10.0 0030
Files correlati : ba7.exe Ricompilazione Demo : [ ] Commento : Espresso l'intervallo per il postino in secondi git-svn-id: svn://10.65.10.50/trunk@16468 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e37e923df2
commit
b18b856b32
@ -449,14 +449,14 @@ TFilter_expr::TFilter_expr(TAutomask& m, int logicnum, const char* expr)
|
|||||||
ok = join.exist(f.name());
|
ok = join.exist(f.name());
|
||||||
}
|
}
|
||||||
if (!ok)
|
if (!ok)
|
||||||
{
|
{
|
||||||
_error = 883;
|
_error = 883;
|
||||||
TString msg;
|
TString msg;
|
||||||
msg.format(FR("Il campo %s non appartiene al file %d"), varname(i), logicnum);
|
msg.format(FR("Il campo %s non appartiene al file %d"), varname(i), logicnum);
|
||||||
print_error(msg);
|
print_error(msg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -552,7 +552,7 @@ void TMailer_mask::test_delete()
|
|||||||
row->get(sender_pos, file); // Cartella di provenienza
|
row->get(sender_pos, file); // Cartella di provenienza
|
||||||
file.add(id);
|
file.add(id);
|
||||||
file.ext("ini");
|
file.ext("ini");
|
||||||
xvt_fsys_remove_file(file) != 0;
|
xvt_fsys_remove_file(file);
|
||||||
deleted = true;
|
deleted = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1246,15 +1246,15 @@ bool TMailer_mask::on_field_event(TOperable_field& o, TField_event e, long jolly
|
|||||||
xvt_timer_destroy(_timer_id);
|
xvt_timer_destroy(_timer_id);
|
||||||
_timer_id = XVT_TIMER_ERROR;
|
_timer_id = XVT_TIMER_ERROR;
|
||||||
}
|
}
|
||||||
const long minutes = atol(o.get());
|
_interval = atol(o.get());
|
||||||
if (minutes > 0)
|
|
||||||
_interval = atoi(o.get()) * 60;
|
if (_interval > 0)
|
||||||
else
|
{
|
||||||
_interval = 5;
|
|
||||||
_timer_id = xvt_timer_create(win(), 1000L);
|
_timer_id = xvt_timer_create(win(), 1000L);
|
||||||
_secs = 0L;
|
_secs = 0L;
|
||||||
if (_timer_id == XVT_TIMER_ERROR)
|
if (_timer_id == XVT_TIMER_ERROR)
|
||||||
return error_box("Impossibile impostare il timer");
|
return error_box("Impossibile impostare il timer");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case F_MESSAGES:
|
case F_MESSAGES:
|
||||||
@ -1399,9 +1399,12 @@ void TMailer_mask::auto_save_all()
|
|||||||
#endif
|
#endif
|
||||||
test_delete();
|
test_delete();
|
||||||
if (sf.items() == 0)
|
if (sf.items() == 0)
|
||||||
fill_messages();
|
fill_messages();
|
||||||
|
if (_interval > 0)
|
||||||
|
{
|
||||||
if (sf.items() > 0)
|
if (sf.items() > 0)
|
||||||
save_all_lines();
|
save_all_lines();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
NFCHECK("Can't save locked mail");
|
NFCHECK("Can't save locked mail");
|
||||||
|
@ -26,7 +26,7 @@ BEGIN
|
|||||||
GROUP G_SUPERUSER
|
GROUP G_SUPERUSER
|
||||||
END
|
END
|
||||||
|
|
||||||
NUMBER F_TIMER 4
|
NUMBER F_TIMER 5
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 41 0 "Controlla la posta ogni "
|
PROMPT 41 0 "Controlla la posta ogni "
|
||||||
FLAGS "U"
|
FLAGS "U"
|
||||||
@ -35,7 +35,7 @@ END
|
|||||||
|
|
||||||
TEXT DLG_NULL
|
TEXT DLG_NULL
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 71 0 "minuti"
|
PROMPT 72 0 "secondi"
|
||||||
END
|
END
|
||||||
|
|
||||||
STRING F_SERVER 80 28
|
STRING F_SERVER 80 28
|
||||||
|
Loading…
x
Reference in New Issue
Block a user