From 6bbfaba42465289aec0b20d35d3fc1887092e047 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 8 Jun 1995 15:50:48 +0000 Subject: [PATCH] Correzione alla chiamata automatica di set_firm git-svn-id: svn://10.65.10.50/trunk@1458 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ba/ba0.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ba/ba0.cpp b/ba/ba0.cpp index f29b6696c..434a6f1f6 100755 --- a/ba/ba0.cpp +++ b/ba/ba0.cpp @@ -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);