Aggiunto messaggio di ritorno per MSG_LN (link).

git-svn-id: svn://10.65.10.50/trunk@96 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1994-08-30 10:40:42 +00:00
parent 8096eb78ad
commit 8a203da2c3

View File

@ -1,4 +1,4 @@
// $Id: relapp.cpp,v 1.5 1994-08-29 08:25:48 guy Exp $ // $Id: relapp.cpp,v 1.6 1994-08-30 10:40:42 alex Exp $
#include <mailbox.h> #include <mailbox.h>
#include <sheet.h> #include <sheet.h>
#include <urldefid.h> #include <urldefid.h>
@ -709,7 +709,8 @@ bool TRelation_application::main_loop()
case K_QUIT: case K_QUIT:
if (save(TRUE)) if (save(TRUE))
{ {
if (_mask->mode() == MODE_MOD && _autoins_caller.not_empty()) if (_mask->mode() == MODE_MOD &&
(_autoins_caller.not_empty() || _lnflag))
recins = file().recno(); recins = file().recno();
} }
else k = K_ENTER; else k = K_ENTER;
@ -788,6 +789,11 @@ bool TRelation_application::main_loop()
TMessage msg(_autoins_caller, MSG_AI, format("%ld", recins)); TMessage msg(_autoins_caller, MSG_AI, format("%ld", recins));
msg.send(); msg.send();
} }
if (recins > 0 && _lnflag)
{
TMessage msg(_autoins_caller, MSG_LN, format("%ld", recins));
msg.send();
}
return k != K_QUIT; return k != K_QUIT;
} }