Fixed last message functionality

This commit is contained in:
Jordan Sherer 2019-09-30 10:59:32 -04:00
parent 160f02ba15
commit 6215afd18d

View File

@ -6189,12 +6189,8 @@ QString MainWindow::createMessageTransmitQueue(QString const& text, bool reset){
resetCQTimer(false); resetCQTimer(false);
#endif #endif
// keep track of the last message text sent // return the text
auto joined = lines.join(""); return lines.join("");
m_lastTxMessage += joined;
return joined;
} }
void MainWindow::restoreMessage(){ void MainWindow::restoreMessage(){
@ -6348,7 +6344,7 @@ bool MainWindow::prepareNextMessageFrame()
// append this frame to the total message sent so far // append this frame to the total message sent so far
auto dt = DecodedText(frame, bits, m_nSubMode); auto dt = DecodedText(frame, bits, m_nSubMode);
m_totalTxMessage.append(dt.message()); m_totalTxMessage.append(dt.message());
m_lastMessageSent.append(dt.message()); m_lastTxMessage.append(dt.message());
ui->extFreeTextMsgEdit->setCharsSent(m_totalTxMessage.length()); ui->extFreeTextMsgEdit->setCharsSent(m_totalTxMessage.length());
m_txFrameCountSent += 1; m_txFrameCountSent += 1;
qDebug() << "total sent:" << m_txFrameCountSent << "\n" << m_totalTxMessage; qDebug() << "total sent:" << m_txFrameCountSent << "\n" << m_totalTxMessage;