Patch level : 12.00 139
Files correlati : ve01.exe ve11.exe fp01.exe cg021.exe Commento : Invio con FePA
This commit is contained in:
parent
1589b5aecd
commit
f78c0c2121
@ -796,38 +796,36 @@ void TApplication::open_files(int logicnum, ...)
|
||||
|
||||
bool TApplication::get_spotlite_path(TFilename& path) const
|
||||
{
|
||||
bool ok = dongle().active(RSAUT);
|
||||
if (ok)
|
||||
bool ok = false;
|
||||
|
||||
if (prefix_valid())
|
||||
path = prefix().get_studio(); // Legge il persorso dello studio corrente
|
||||
else
|
||||
path = ini_get_string(CONFIG_INSTALL, "Main", "Study");
|
||||
const TString80 study = path.name(); // Estrae il nome dello studio (senza percorso)
|
||||
path.add("spotlite"); // Crea il nome standard della cartella per gli archivi
|
||||
ok = path.exist(); // Controlla se esiste gia'
|
||||
if (!ok)
|
||||
{
|
||||
if (prefix_valid())
|
||||
path = prefix().get_studio(); // Legge il persorso dello studio corrente
|
||||
else
|
||||
path = ini_get_string(CONFIG_INSTALL, "Main", "Study");
|
||||
const TString80 study = path.name(); // Estrae il nome dello studio (senza percorso)
|
||||
path.add("spotlite"); // Crea il nome standard della cartella per gli archivi
|
||||
ok = path.exist(); // Controlla se esiste gia'
|
||||
if (!ok)
|
||||
make_dir("servers"); // Assicuiramoci che esista la cartella servers
|
||||
TConfig ini("servers/servers.ini", "Spotlite");
|
||||
for (int i = 0; ; i++)
|
||||
{
|
||||
make_dir("servers"); // Assicuiramoci che esista la cartella servers
|
||||
TConfig ini("servers/servers.ini", "Spotlite");
|
||||
for (int i = 0; ; i++)
|
||||
const TString& s = ini.get("Study", NULL, i);
|
||||
if (s.blank()) // NON e' mai stato configurato
|
||||
{
|
||||
const TString& s = ini.get("Study", NULL, i);
|
||||
if (s.blank()) // NON e' mai stato configurato
|
||||
ini.set("Study", study, NULL, TRUE, i);
|
||||
ini.set("Data", path, NULL, TRUE, i);
|
||||
ok = make_dir(path);
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (s.compare(study, -1, true) == 0) // E' gia' configurato
|
||||
{
|
||||
ini.set("Study", study, NULL, TRUE, i);
|
||||
ini.set("Data", path, NULL, TRUE, i);
|
||||
ok = make_dir(path);
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (s.compare(study, -1, true) == 0) // E' gia' configurato
|
||||
{
|
||||
path = ini.get("Data", NULL, i);
|
||||
ok = path.exist();
|
||||
break;
|
||||
}
|
||||
path = ini.get("Data", NULL, i);
|
||||
ok = path.exist();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2421,7 +2421,7 @@ bool TBook::print(size_t pagefrom, size_t pageto, word copies)
|
||||
bool TBook::export_pdf(TFilename& filename, bool signature, bool goto_url, bool ask_filename)
|
||||
{
|
||||
|
||||
bool ok = (pages() > 0) && main_app().has_module(RSAUT); // Controllo paranoico dei permessi
|
||||
bool ok = (pages() > 0); // Controllo paranoico dei permessi
|
||||
if (ok)
|
||||
{
|
||||
ask_filename |= filename.blank();
|
||||
|
Loading…
x
Reference in New Issue
Block a user