master 0.78
John Wiseman 2 years ago
parent d432194d34
commit 7efd424218

@ -588,7 +588,7 @@ void QtTermTCP::onAGWSocketStateChanged(QAbstractSocket::SocketState socketState
if (Sess) if (Sess)
{ {
AGWUsers->MonSess = Sess; AGWUsers->MonSess = Sess;
Sess->AGWSession = sender; // Flag as in use // Sess->AGWSession = sender; // Flag as in use
if (TermMode == MDI) if (TermMode == MDI)
Sess->setWindowTitle("AGW Monitor Window"); Sess->setWindowTitle("AGW Monitor Window");
@ -1038,9 +1038,9 @@ void on_AGW_C_frame(AGWUser * AGW, struct AGWHeader * Frame, byte * Msg)
Sess = newWindow((QObject *)mythis, Listen, ""); Sess = newWindow((QObject *)mythis, Listen, "");
} }
} }
else else if (TermMode == Tabbed)
{ {
// Single or Tabbed - look for free session // Single Tabbed - look for free session
for (i = 0; i < _sessions.size(); ++i) for (i = 0; i < _sessions.size(); ++i)
@ -1053,15 +1053,33 @@ void on_AGW_C_frame(AGWUser * AGW, struct AGWHeader * Frame, byte * Msg)
break; break;
} }
} }
}
else
{
// Single - Only one available
S = _sessions.at(0);
if (Sess == NULL) if (S->clientSocket == NULL && S->AGWSession == NULL && S->KISSSession == NULL)
{ Sess = S;
// Clear connection
return;
}
} }
if (Sess == NULL)
{
// Clear connection by sendinf d fraame
UCHAR Msg[512];
int snd_ch = Frame->Port;
char * CallFrom = Frame->callfrom;
char * CallTo = Frame->callto;
AGW_frame_header(Msg, Frame->Port, 'd', 240, Frame->callto, Frame->callfrom, 0);
if (AGW->socket)
AGW->socket->write((char *)Msg, AGWHDDRRLEN);
return;
}
if (Sess) if (Sess)
{ {
sprintf(Title, "Connected to %s", CallFrom); sprintf(Title, "Connected to %s", CallFrom);

@ -2,7 +2,7 @@
// Application icon design by Red PE1RRR // Application icon design by Red PE1RRR
#define VersionString "0.0.0.77 Beta 1" #define VersionString "0.0.0.77"
// .12 Save font weight // .12 Save font weight
@ -118,6 +118,7 @@
// .77 // .77
// Support multichannel KISS TNCs (Beta 1) // Support multichannel KISS TNCs (Beta 1)
// Fix using AGW listen in single terminal mode
#define _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS

Loading…
Cancel
Save

Powered by TurnKey Linux.