mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-15 16:42:12 -05:00
Merge branch 'release-2.1.0' of bitbucket.org:k1jt/wsjtx into release-2.1.0
This commit is contained in:
commit
40438c037e
@ -332,10 +332,15 @@ namespace
|
|||||||
// will parse a record
|
// will parse a record
|
||||||
{
|
{
|
||||||
auto const& entity = prefixes->lookup (call);
|
auto const& entity = prefixes->lookup (call);
|
||||||
|
auto mode = extractField (record, "MODE").toUpper ();
|
||||||
|
if (!mode.size () || "MFSK" == mode)
|
||||||
|
{
|
||||||
|
mode = extractField (record, "SUBMODE").toUpper ();
|
||||||
|
}
|
||||||
worked.emplace (call.toUpper ()
|
worked.emplace (call.toUpper ()
|
||||||
, extractField (record, "GRIDSQUARE").left (4).toUpper () // not interested in 6-digit grids
|
, extractField (record, "GRIDSQUARE").left (4).toUpper () // not interested in 6-digit grids
|
||||||
, extractField (record, "BAND").toUpper ()
|
, extractField (record, "BAND").toUpper ()
|
||||||
, extractField (record, "MODE").toUpper ()
|
, mode
|
||||||
, entity.entity_name
|
, entity.entity_name
|
||||||
, entity.continent
|
, entity.continent
|
||||||
, entity.CQ_zone
|
, entity.CQ_zone
|
||||||
|
@ -69,7 +69,14 @@ QByteArray LogBook::QSOToADIF (QString const& hisCall, QString const& hisGrid, Q
|
|||||||
QString t;
|
QString t;
|
||||||
t = "<call:" + QString::number(hisCall.length()) + ">" + hisCall;
|
t = "<call:" + QString::number(hisCall.length()) + ">" + hisCall;
|
||||||
t += " <gridsquare:" + QString::number(hisGrid.length()) + ">" + hisGrid;
|
t += " <gridsquare:" + QString::number(hisGrid.length()) + ">" + hisGrid;
|
||||||
t += " <mode:" + QString::number(mode.length()) + ">" + mode;
|
if (mode != "FT4")
|
||||||
|
{
|
||||||
|
t += " <mode:" + QString::number(mode.length()) + ">" + mode;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
t += " <mode:4>MFSK <submode:" + QString::number(mode.length()) + ">" + mode;
|
||||||
|
}
|
||||||
t += " <rst_sent:" + QString::number(rptSent.length()) + ">" + rptSent;
|
t += " <rst_sent:" + QString::number(rptSent.length()) + ">" + rptSent;
|
||||||
t += " <rst_rcvd:" + QString::number(rptRcvd.length()) + ">" + rptRcvd;
|
t += " <rst_rcvd:" + QString::number(rptRcvd.length()) + ">" + rptRcvd;
|
||||||
t += " <qso_date:8>" + dateTimeOn.date().toString("yyyyMMdd");
|
t += " <qso_date:8>" + dateTimeOn.date().toString("yyyyMMdd");
|
||||||
|
Loading…
Reference in New Issue
Block a user