Corretta gestione colori dopo password
git-svn-id: svn://10.65.10.50/trunk@3121 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
077266f0b0
commit
93dd2b09dd
13
ba/ba0.cpp
13
ba/ba0.cpp
@ -451,7 +451,7 @@ bool TMenu_application::check_user()
|
|||||||
{
|
{
|
||||||
TMask m("ba0100a");
|
TMask m("ba0100a");
|
||||||
TLocalisamfile users(LF_USER);
|
TLocalisamfile users(LF_USER);
|
||||||
TString16 utente(user()), pwd;
|
TString utente(user()), pwd;
|
||||||
|
|
||||||
bool ok = FALSE;
|
bool ok = FALSE;
|
||||||
for (int i = 0 ; i < 3 && !ok; i++)
|
for (int i = 0 ; i < 3 && !ok; i++)
|
||||||
@ -507,15 +507,18 @@ bool TMenu_application::check_user()
|
|||||||
m.set(F_PASSWORD,"");
|
m.set(F_PASSWORD,"");
|
||||||
}
|
}
|
||||||
|
|
||||||
customize_colors();
|
|
||||||
if (err == NOERR)
|
if (err == NOERR)
|
||||||
{
|
{
|
||||||
if (ok)
|
if (ok)
|
||||||
{
|
{
|
||||||
users.put("CONNECTED", "X");
|
users.put("CONNECTED", "X");
|
||||||
users.rewrite();
|
users.rewrite();
|
||||||
|
|
||||||
|
customize_colors(); // Aggiorna set di colori
|
||||||
|
xvt_dwin_invalidate_rect(TASK_WIN, NULL); // Ridisegna sfondo
|
||||||
}
|
}
|
||||||
else users.read(_isequal, _unlock);
|
else
|
||||||
|
users.read(_isequal, _unlock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -526,8 +529,8 @@ bool TMenu_application::check_user()
|
|||||||
if (dde.initiate("PROGMAN", "PROGMAN"))
|
if (dde.initiate("PROGMAN", "PROGMAN"))
|
||||||
{
|
{
|
||||||
dde.execute("[ReplaceItem(PR.A.S.S.I.)]");
|
dde.execute("[ReplaceItem(PR.A.S.S.I.)]");
|
||||||
TString80 cmd("[AddItem(");
|
TString cmd(80);
|
||||||
cmd << argv(0) << " /u" << utente << ",PR.A.S.S.I.)]";
|
cmd << "[AddItem(" << argv(0) << " /u" << utente << ",PR.A.S.S.I.)]";
|
||||||
dde.execute(cmd);
|
dde.execute(cmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user