Correzione alla chiamata automatica di set_firm
git-svn-id: svn://10.65.10.50/trunk@1458 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
105f075dce
commit
6bbfaba424
15
ba/ba0.cpp
15
ba/ba0.cpp
@ -445,15 +445,16 @@ bool TMenu_application::check_user()
|
|||||||
{
|
{
|
||||||
TMask m("ba0100a");
|
TMask m("ba0100a");
|
||||||
TLocalisamfile users(LF_USER);
|
TLocalisamfile users(LF_USER);
|
||||||
TString16 utente(user()), pwd;
|
TString16 utente, pwd;
|
||||||
|
// TString16 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++)
|
||||||
{
|
{
|
||||||
m.set(F_USER, utente);
|
// m.set(F_USER, utente);
|
||||||
if (utente.not_empty())
|
// if (utente.not_empty())
|
||||||
m.first_focus(F_PASSWORD);
|
// m.first_focus(F_PASSWORD);
|
||||||
if (m.run() == K_ESC)
|
if (m.run() == K_ESC)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -577,8 +578,10 @@ bool TMenu_application::menu(MENU_TAG)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (get_firm() == 0) // Chiede ditta se necessario
|
const TString16 module(cmd2name(option));
|
||||||
|
|
||||||
|
if (get_firm() == 0 && module.left(2) == "cg") // Chiede ditta se necessario
|
||||||
set_firm();
|
set_firm();
|
||||||
prefix().set(NULL); // Chiude prefix
|
prefix().set(NULL); // Chiude prefix
|
||||||
TExternal_app a(option);
|
TExternal_app a(option);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user