Corretto scarico dei files

git-svn-id: svn://10.65.10.50/trunk@89 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1994-08-29 13:05:36 +00:00
parent f953e72be9
commit 30ff8f5f11

View File

@ -252,19 +252,24 @@ void BA1100_application::edit_riga (long riga_sel, TToken_string& riga)
if (tasto == K_F7) if (tasto == K_F7)
{ {
TMask m("ba1100b"); TMask m("ba1100b");
TFilename nout(dep.SysName);
TFilename nout(dep.SysName);
nout.strip("$%"); nout.strip("$%");
nout.ext("txt"); nout.ext("txt");
m.set(FLD_OUTFILE, nout); m.set(FLD_OUTFILE, nout);
if (m.run() == K_ENTER) if (m.run() == K_ENTER)
{
nout = m.get(FLD_OUTFILE);
if (nout.not_empty())
{ {
const char fs = *esc(m.get(FLD_FS)); const char fs = *esc(m.get(FLD_FS));
const char fd = *esc(m.get(FLD_FD)); const char fd = *esc(m.get(FLD_FD));
const char rs = *esc(m.get(FLD_RS)); const char rs = *esc(m.get(FLD_RS));
const bool withdel = m.get(FLD_WITHDEL).not_empty(); const bool withdel = m.get_bool(FLD_WITHDEL);
const int keyno = m.get_int(FLD_KEYNO);
f.dump(m.get(FLD_OUTFILE), atoi(m.get(FLD_KEYNO)), fs, fd, rs, withdel); f.dump(nout, keyno, fs, fd, rs, withdel);
}
} }
} }
else else