Aggiunto sacrico del .dir
git-svn-id: svn://10.65.10.50/trunk@4553 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
02264b4036
commit
834658e92f
@ -184,7 +184,7 @@ bool TRec_sheet::key_notify(TSheet_field& f, int r, KEY k)
|
||||
if (f.items() >= 8) return FALSE;
|
||||
}
|
||||
else
|
||||
if (k = K_CTRL + K_INS)
|
||||
if (k == K_CTRL + K_INS)
|
||||
f.enable_cell(r, 1, r > 0);
|
||||
return TRUE;
|
||||
}
|
||||
@ -320,14 +320,19 @@ void TRec_sheet::edit()
|
||||
m.set(F_NOMEF, nout);
|
||||
if (m.run() == K_ENTER)
|
||||
{
|
||||
const TFilename nf(m.get(F_NOMEF));
|
||||
TFilename nf(m.get(F_NOMEF));
|
||||
if (nf.not_empty())
|
||||
{
|
||||
save_desc();
|
||||
_rec->set_des(_descr,_tab.upper());
|
||||
{
|
||||
_rec->set_des(_descr,_tab.upper());
|
||||
ofstream out(nf);
|
||||
out << *_rec;
|
||||
_rec->set_des();
|
||||
}
|
||||
nf.ext("dir");
|
||||
ofstream out(nf);
|
||||
out << *_rec;
|
||||
_rec->set_des();
|
||||
out << *_dir;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user