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:
Bill Somerville 2016-06-28 15:53:50 +00:00
parent 0943567625
commit 4c4b182b72
2 changed files with 2 additions and 21 deletions

View File

@ -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"};

View File

@ -2,14 +2,6 @@
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>896</width>
<height>565</height>
</rect>
</property>
<property name="windowTitle">
<string>WSJT-X by K1JT</string>
</property>
@ -2284,14 +2276,6 @@ QPushButton[state=&quot;ok&quot;] {
</layout>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>896</width>
<height>21</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>File</string>