Fix several more bugs in generating new-style messages. Use DXped label for contest ID.

This commit is contained in:
Joe Taylor 2018-07-07 14:47:33 -04:00
parent a9bb1924f9
commit df26a762dd

View File

@ -4566,12 +4566,13 @@ void MainWindow::genStdMsgs(QString rpt, bool unconditional)
QString rs=rst.mid(0,2); QString rs=rst.mid(0,2);
if(m_config.bEU_VHF_Contest()) { if(m_config.bEU_VHF_Contest()) {
QString a; QString t1,a;
a.sprintf(" %d ",ui->sbSerialNumber->value()); t1=t0.split(" ").at(0);
t=t0 + rs + a + m_config.my_grid(); a.sprintf("%4.4d ",ui->sbSerialNumber->value());
t=t1 + " " + rs + a + m_config.my_grid();
msgtype(t, ui->tx2); msgtype(t, ui->tx2);
a.sprintf(" %d ",ui->sbSerialNumber->value()); a.sprintf("%4.4d ",ui->sbSerialNumber->value());
t=t0 + "R " + rs + a + m_config.my_grid(); t=t1 + " R " + rs + a + m_config.my_grid();
msgtype(t, ui->tx3); msgtype(t, ui->tx3);
m_send_RR73=true; m_send_RR73=true;
} }
@ -5176,6 +5177,19 @@ void MainWindow::on_actionFT8_triggered()
ui->txb6->setEnabled(false); ui->txb6->setEnabled(false);
} }
QString t0="";
if(m_config.bEU_VHF_Contest()) t0="EU VHF";
if(m_config.bNA_VHF_Contest()) t0="NA VHF";
if(m_config.bFieldDay()) t0="FD";
if(m_config.bRTTYroundup()) t0=="RTTY";
if(m_config.bGenerate77()) t0+=" 2";
if(t0=="") {
ui->labDXped->setVisible(false);
} else {
ui->labDXped->setVisible(true);
ui->labDXped->setText("*** " + t0 + " ***");
}
if((m_config.bFox() or m_config.bHound()) and !m_config.split_mode() and !m_bWarnedSplit) { if((m_config.bFox() or m_config.bHound()) and !m_config.split_mode() and !m_bWarnedSplit) {
QString errorMsg; QString errorMsg;
MessageBox::critical_message (this, MessageBox::critical_message (this,