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:
alex 1995-06-08 15:50:48 +00:00
parent 105f075dce
commit 6bbfaba424

View File

@ -445,15 +445,16 @@ bool TMenu_application::check_user()
{
TMask m("ba0100a");
TLocalisamfile users(LF_USER);
TString16 utente(user()), pwd;
TString16 utente, pwd;
// TString16 utente(user()), pwd;
bool ok = FALSE;
for (int i = 0 ; i < 3 && !ok; i++)
{
m.set(F_USER, utente);
if (utente.not_empty())
m.first_focus(F_PASSWORD);
// m.set(F_USER, utente);
// if (utente.not_empty())
// m.first_focus(F_PASSWORD);
if (m.run() == K_ESC)
break;
@ -577,8 +578,10 @@ bool TMenu_application::menu(MENU_TAG)
}
}
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();
prefix().set(NULL); // Chiude prefix
TExternal_app a(option);