Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion logformat/LogFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,25 @@ void LogFormat::runQSLImport(QSLFrom fromService)
if ( QSLRecord.value("qsl_rcvd") != originalRecord.value("lotw_qsl_rcvd")
&& QSLRecord.value("qsl_rcvd").toString() == 'Y' )
{
DxccStatus status = Data::dxccStatus(QSLRecord.value("dxcc").toInt(), band.toString(), mode.toString());
QString DxccStatusStr = "";
if (status == DxccStatus::NewEntity )
{
DxccStatusStr = "(New Entity)";
}
if (status == DxccStatus::NewMode )
{
DxccStatusStr = "(New Mode " + mode.toString() +")";
}
if (status == DxccStatus::NewBandMode )
{
DxccStatusStr = "(New Band/Mode " + band.toString() + " " + mode.toString() + ")";
}
if (status == DxccStatus::NewSlot )
{
DxccStatusStr = "(New Slot " + band.toString() + " " + mode.toString() + ")";
}

originalRecord.setValue("lotw_qsl_rcvd", QSLRecord.value("qsl_rcvd"));

originalRecord.setValue("lotw_qslrdate", QSLRecord.value("qsl_rdate"));
Expand Down Expand Up @@ -711,8 +730,9 @@ void LogFormat::runQSLImport(QSLFrom fromService)
{
qWarning() << "Cannot commit changes to Contact Table - " << model.lastError();
}

stats.qsos_updated++;
stats.newQSLs.append(call.toString());
stats.newQSLs.append(call.toString() + " " + DxccStatusStr);
}
}
else
Expand Down