From 30ff8f5f117d77c9f41881ae1e91076caaf5ef01 Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 29 Aug 1994 13:05:36 +0000 Subject: [PATCH] Corretto scarico dei files git-svn-id: svn://10.65.10.50/trunk@89 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ba/ba1100.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/ba/ba1100.cpp b/ba/ba1100.cpp index 059a8a82f..0f747ef2b 100755 --- a/ba/ba1100.cpp +++ b/ba/ba1100.cpp @@ -252,19 +252,24 @@ void BA1100_application::edit_riga (long riga_sel, TToken_string& riga) if (tasto == K_F7) { TMask m("ba1100b"); + TFilename nout(dep.SysName); - nout.strip("$%"); nout.ext("txt"); m.set(FLD_OUTFILE, nout); + if (m.run() == K_ENTER) { - const char fs = *esc(m.get(FLD_FS)); - const char fd = *esc(m.get(FLD_FD)); - const char rs = *esc(m.get(FLD_RS)); - const bool withdel = m.get(FLD_WITHDEL).not_empty(); - - f.dump(m.get(FLD_OUTFILE), atoi(m.get(FLD_KEYNO)), fs, fd, rs, withdel); + nout = m.get(FLD_OUTFILE); + if (nout.not_empty()) + { + const char fs = *esc(m.get(FLD_FS)); + const char fd = *esc(m.get(FLD_FD)); + const char rs = *esc(m.get(FLD_RS)); + const bool withdel = m.get_bool(FLD_WITHDEL); + const int keyno = m.get_int(FLD_KEYNO); + f.dump(nout, keyno, fs, fd, rs, withdel); + } } } else