mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-07-05 01:53:12 -04:00
Allow for empty decode message in UDP reply message
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6812 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+2
-5
@@ -10,6 +10,7 @@
|
||||
#include <QLineEdit>
|
||||
#include <QRegExpValidator>
|
||||
#include <QRegExp>
|
||||
#include <QRegularExpression>
|
||||
#include <QDesktopServices>
|
||||
#include <QUrl>
|
||||
#include <QStandardPaths>
|
||||
@@ -5035,11 +5036,7 @@ void MainWindow::replyToCQ (QTime time, qint32 snr, float delta_time, quint32 de
|
||||
return;
|
||||
}
|
||||
|
||||
auto decode_parts = message_text.split (' ', QString::SkipEmptyParts);
|
||||
|
||||
if (decode_parts[0] == "CQ"
|
||||
|| decode_parts[0] == "CQDX"
|
||||
|| decode_parts[0] == "QRZ")
|
||||
if (message_text.contains (QRegularExpression {R"(^(CQ |CQDX |QRZ ))"}))
|
||||
{
|
||||
// a message we are willing to accept
|
||||
QString format_string {"%1 %2 %3 %4 %5 %6"};
|
||||
|
||||
Reference in New Issue
Block a user