From 898b5473507a5cff724188fcdcb0acd968331a7c Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 10 Apr 2007 09:19:15 +0000 Subject: [PATCH] Patch level : 4.0 Files correlati : ba1 Ricompilazione Demo : [ ] Commento : Nella gestione utente NON rende piu' obbligatoria la password sui gruppi (campo inaccessibile) git-svn-id: svn://10.65.10.50/trunk@15200 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ba/ba1200.cpp | 2 -- ba/ba1400.cpp | 6 ++---- ba/ba1400a.uml | 1 + ba/ba1700.cpp | 4 ++-- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ba/ba1200.cpp b/ba/ba1200.cpp index d48110f76..78a811604 100755 --- a/ba/ba1200.cpp +++ b/ba/ba1200.cpp @@ -1,5 +1,3 @@ -#include - #include #include #include diff --git a/ba/ba1400.cpp b/ba/ba1400.cpp index c7bfd47bd..a3e53ed11 100755 --- a/ba/ba1400.cpp +++ b/ba/ba1400.cpp @@ -427,7 +427,7 @@ bool TSet_user_passwd::password_handler(TMask_field& f, KEY key) { bool ok = true; - if (key == K_ENTER && !f.mask().query_mode()) + if (key == K_ENTER && f.active() && !f.mask().query_mode()) { const TString& pwd = f.get(); const int pwdlen = pwd.len(); @@ -475,7 +475,7 @@ bool TSet_users::tree_handler(TMask_field& f, KEY key) TSheet_field& sf = m.sfield(F_PROPERTIES); const TString& old = m.get(F_APPLICAT); - if (old.not_empty()) + if (old.full()) { menu->properties(old) = sf.rows_array(); @@ -606,7 +606,6 @@ void TSet_user_passwd::enable_aut() const int module = _im->get_module_by_order(i+uns); TToken_string& riga = sf.row(i); if (module == BAAUT) - { sf.disable_cell(i,1); riga.add("X",1); @@ -677,7 +676,6 @@ bool TSet_users::user_create() sf.set_notify(k_notify); const char* menuname = "bamenu.men"; - _tree = new TMenu(menuname); _msk->set_handler(F_PERMESSI, tree_handler); _msk->tfield(F_PERMESSI).set_tree(_tree); diff --git a/ba/ba1400a.uml b/ba/ba1400a.uml index 216c25cb0..f713f7b5e 100755 --- a/ba/ba1400a.uml +++ b/ba/ba1400a.uml @@ -21,6 +21,7 @@ BEGIN FIELD ISGROUP GROUP G_SUPERUSER KEY 1 + FLAGS "G" END STRING F_USER 16 diff --git a/ba/ba1700.cpp b/ba/ba1700.cpp index e0c82960b..d9e5c2b37 100755 --- a/ba/ba1700.cpp +++ b/ba/ba1700.cpp @@ -584,9 +584,9 @@ bool TInstaller_mask::can_install(const char* module, TInstall_ini& ini) #endif TAuto_token_string altri(ini.get("Moduli", module)); - if (stricmp(module, "sy") != 0) //SY e' indipendente dagli altri moduli + if (xvt_str_compare_ignoring_case(module, "sy") != 0) //SY e' indipendente dagli altri moduli { - if (stricmp(module, "ba") != 0 && altri.get_pos("ba") < 0) + if (xvt_str_compare_ignoring_case(module, "ba") != 0 && altri.get_pos("ba") < 0) altri.add("ba"); }