mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-08 17:04:41 -04:00
Merged free text UDP message changes from the wsjtx branch
r5444 | bsomervi | 2015-05-28 16:44:03 +0100 (Thu, 28 May 2015) | 4 lines Respond to clicks on Gen/Free radio buttons even if checked The generated and free text radio buttons now refresh the sent message even if teh clicked radio button is already checked. ------------------------------------------------------------------------ r5445 | bsomervi | 2015-05-28 18:33:39 +0100 (Thu, 28 May 2015) | 9 lines Made the UDP message to change the free text message optionally send ASAP This message now has the ability to simply change the free text message or to change the message and send it ASAP. The message_aggregator reference UDP server application exercises this feature by sending a new free text message on any edit and requesting it be sent by WSJT-X when editing is finished i,e, RETURN pressed or focus moved away. ------------------------------------------------------------------------ r5446 | bsomervi | 2015-05-28 18:45:33 +0100 (Thu, 28 May 2015) | 1 line Don't send empty free text messages git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.5@5447 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+9
-6
@@ -137,12 +137,15 @@ void MessageClient::impl::parse_message (QByteArray const& msg)
|
||||
break;
|
||||
|
||||
case NetworkMessage::FreeText:
|
||||
if (check_status (in) != Fail)
|
||||
{
|
||||
QByteArray message;
|
||||
in >> message;
|
||||
Q_EMIT self_->free_text (QString::fromUtf8 (message));
|
||||
}
|
||||
{
|
||||
QByteArray message;
|
||||
bool send {true};
|
||||
in >> message >> send;
|
||||
if (check_status (in) != Fail)
|
||||
{
|
||||
Q_EMIT self_->free_text (QString::fromUtf8 (message), send);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user