Patch level :4.0 804
Files correlati : Ricompilazione Demo : [ ] Commento :aggiunto avviso di utonti connessi PRIMA di avviare la conversione git-svn-id: svn://10.65.10.50/trunk@15740 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
0e6911d513
commit
88ce0d80a2
@ -1392,19 +1392,30 @@ void TManutenzione_app::load_des(const int maxfdir)
|
||||
|
||||
void TManutenzione_app::update()
|
||||
{
|
||||
bool ok = true;
|
||||
bool ok = false;
|
||||
|
||||
TIsamfile utenti(LF_USER);
|
||||
utenti.open(_excllock);
|
||||
|
||||
#ifndef DBG
|
||||
for (int err = utenti.first(); err == NOERR; err = utenti.next())
|
||||
while (!ok)
|
||||
{
|
||||
const TString& u = utenti.get(USR_USERNAME);
|
||||
if (u != ::dongle().administrator() && utenti.get_bool(USR_CONNECTED))
|
||||
TToken_string utonti(64, ',');
|
||||
for (int err = utenti.first(); err == NOERR; err = utenti.next())
|
||||
{
|
||||
ok = error_box(FR("La conversione non puo' essere effettuata\nmentre l'utente %s e' collegato"), (const char*)u);
|
||||
break;
|
||||
const TString& u = utenti.get(USR_USERNAME);
|
||||
if (u != ::dongle().administrator() && utenti.get_bool(USR_CONNECTED))
|
||||
utonti.add(u);
|
||||
}
|
||||
ok = utonti.empty();
|
||||
if (!ok)
|
||||
{
|
||||
TToken_string message(80, '\n');
|
||||
message = TR("Conversione archivi impossibile mentre ci sono utenti collegati!");
|
||||
message.add(TR("Qualora uno degli utenti elencati non fosse effettivamente connesso, ");
|
||||
message.add("effettuare una sua connessione e disconnessione immediata per sbloccarlo"));
|
||||
message.add(utonti);
|
||||
error_box(message);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user