Patch level : 2.0 694

Files correlati     : cg2.exe
Ricompilazione Demo : [ ]
Commento            :

Correzioni necessarie per pagamenti in prima nota


git-svn-id: svn://10.65.10.50/trunk@11507 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2003-10-17 08:20:13 +00:00
parent ddce6648a8
commit 62f7840f0d
4 changed files with 11 additions and 20 deletions

View File

@ -557,8 +557,7 @@ word TConfig::items(
// @mfunc Inizializza il paragrafo leggendo dal file i dati
void TConfig::init(
const char *fn, // @parm Nome del file da leggere
const char* pa, // @parm Nome del paragrafo da utilizzare
bool warning) // @parm Segnala assenza del file
const char* pa) // @parm Nome del paragrafo da utilizzare
// @comm Apre il file <p fn> e cerca il paragrafo <p pa>. Se il file non esiste
// viene creato con il paragrafo passato.
@ -570,8 +569,6 @@ void TConfig::init(
if (!_file.exist())
{
if (warning)
warning_box("Creazione del file di configurazione %s", fn );
ofstream c(fn);
c.close();
}
@ -781,18 +778,14 @@ TConfig::TConfig(int which_config, const char* paragraph)
NFCHECK("Chi usa questo strano .ini?");
break;
}
#ifdef DBG
init(_file, paragraph, TRUE); // Segnala warning solo in debug
#else
init(_file, paragraph, FALSE);
#endif
init(_file, paragraph);
}
TConfig::TConfig(const char *fn, const char* pa)
{
TFilename f(fn);
f.custom_path();
init(f, pa, FALSE);
init(f, pa);
}
TConfig::~TConfig()

View File

@ -78,7 +78,7 @@ protected:
// @cmember Scrive il file di configurazione
void _write_file();
// @cmember Inizializza il paragrafo leggendo dal file di nome <p fn > i dati
void init(const char *fn, const char* pa, bool warning);
void init(const char *fn, const char* pa);
// @access Public Memeber
public:

View File

@ -1301,12 +1301,10 @@ bool TFilename::custom_path(const char* path_list)
{
if (prefix_valid())
{
pl = firm2dir(prefix().get_codditta());
pl << SLASH << "custom";
pl.add(firm2dir(-1));
pl << "custom";
pl = firm2dir(prefix().get_codditta()); // f:/campo/dati/00001A
pl.add(firm2dir(-1)); pl << "custom"; // f:/campo/dati/custom
}
pl.add("custom");
pl.add("custom"); // c:/campo/custom
}
const TString fname = name();
FOR_EACH_TOKEN(pl, path)

View File

@ -224,15 +224,16 @@ void TWindow_manager::unreg(const TWindow* m)
}
else
{
cur_win()->activate();
TWindow& w = *cur_win();
w.activate();
xvt_menu_set_item_enabled(TASK_WIN, M_FILE_QUIT, _current == 0);
const bool cf = _current == 0 && main_app().firm_change_enabled();
xvt_menu_set_item_enabled(TASK_WIN, M_FILE_NEW, cf);
xvt_menu_update(TASK_WIN);
cur_win()->set_focus();
w.set_focus();
w.force_update();
}
}
@ -439,7 +440,6 @@ KEY TWindow::run()
xvt_sys_sleep(50);
}
if (!was_open)
close_modal();
do_events();