Corretto autoinserimento in caso di Link da messaggio

git-svn-id: svn://10.65.10.50/trunk@80 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1994-08-29 08:25:48 +00:00
parent 9feb523764
commit 9d459db955
2 changed files with 10 additions and 7 deletions

View File

@ -1,4 +1,4 @@
// $Id: maskfld.cpp,v 1.6 1994-08-26 14:33:08 alex Exp $
// $Id: maskfld.cpp,v 1.7 1994-08-29 08:25:46 guy Exp $
#include <xvt.h>
#include <applicat.h>
@ -1215,15 +1215,15 @@ void TBrowse::do_clear()
bool TBrowse::do_insert()
{
bool ok = FALSE;
TString app;
TString80 app;
if (_insert[0] == 'M')
{
TString nm(_insert.mid(1));
TString80 nm(_insert.mid(1));
if (strncmp(nm, "BATB", 4) == 0) // Programma gestione tabelle
app = format("ba3 -0 %s", (const char*)nm.mid(4));
app.format("ba3 -0 %s", (const char*)nm.mid(4));
else // Programma generico di browse/edit
app = format("ba3 -3 %s %d", (const char*)nm, _cursor->file()->num());
app.format("ba3 -3 %s %d", (const char*)nm, _cursor->file()->num());
}
else
{
@ -1249,6 +1249,9 @@ bool TBrowse::do_insert()
_cursor->file()->readat(_rec);
ok = _cursor->ok();
if (ok) do_output();
#ifdef DBG
else error_box("Selezione da programma esterno errata");
#endif
}
}
return ok;

View File

@ -1,4 +1,4 @@
// $Id: relapp.cpp,v 1.4 1994-08-26 14:05:47 alex Exp $
// $Id: relapp.cpp,v 1.5 1994-08-29 08:25:48 guy Exp $
#include <mailbox.h>
#include <sheet.h>
#include <urldefid.h>
@ -676,7 +676,7 @@ bool TRelation_application::main_loop()
KEY k;
// Provoca l'autopremimento per il messaggio di LINK
if (_lnflag) _mask->send_key(K_CTRL_ENTER, 0);
if (_lnflag) _mask->send_key(K_AUTO_ENTER, 0);
do
{