Corretto cambio del nome file in aggiornamento tracciati di una ditta.
git-svn-id: svn://10.65.10.50/trunk@1675 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
5f924037d7
commit
ff1d1f56b6
@ -531,6 +531,7 @@ void TManutenzione_app::update_dir()
|
|||||||
p.addstatus(1);
|
p.addstatus(1);
|
||||||
prefix().set("");
|
prefix().set("");
|
||||||
d.get(i, _nolock, _nordir, _sysdirop);
|
d.get(i, _nolock, _nordir, _sysdirop);
|
||||||
|
bool is_firm = d.is_firm();
|
||||||
TString desc(d.des());
|
TString desc(d.des());
|
||||||
TString s(d.name());
|
TString s(d.name());
|
||||||
bool towrite = FALSE;
|
bool towrite = FALSE;
|
||||||
@ -562,6 +563,12 @@ void TManutenzione_app::update_dir()
|
|||||||
|
|
||||||
if (fexist(fs))
|
if (fexist(fs))
|
||||||
{
|
{
|
||||||
|
if (is_firm)
|
||||||
|
{
|
||||||
|
TString name(fd);
|
||||||
|
fd.cut(0);
|
||||||
|
fd << fs.path() << name;
|
||||||
|
}
|
||||||
TFilename path(fd.path());
|
TFilename path(fd.path());
|
||||||
path.rtrim(1);
|
path.rtrim(1);
|
||||||
if (path.not_empty() && !fexist(path))
|
if (path.not_empty() && !fexist(path))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user