From ffc62c792c9a5196cb4ce7a353287dfe20db6524 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Fri, 9 Oct 2026 14:12:35 +0200 Subject: New upstream version 3.3.0~beta1+dfsg --- widgets/mainwindow_slots.cpp | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) (limited to 'widgets/mainwindow_slots.cpp') diff --git a/widgets/mainwindow_slots.cpp b/widgets/mainwindow_slots.cpp index 2ff97b42..18460105 100644 --- a/widgets/mainwindow_slots.cpp +++ b/widgets/mainwindow_slots.cpp @@ -175,9 +175,6 @@ void MainWindow::on_stopButton_clicked() //stopButton { ui->pbBandHopping->setChecked(false); // disable band hopping monitor (false); - if(m_mode=="JTTY" and m_saveAll and !m_diskData) { - jtty_save_wav(); - } m_loopall=false; finishReferenceSpectrumMeasurement(true); if (ui->DX_Call_Button->isChecked()) ui->DX_Call_Button->click (); @@ -238,6 +235,7 @@ void MainWindow::on_DecodeButton_clicked (bool /* checked */) //Decode request void MainWindow::on_ClrAvgButton_clicked() { m_nclearave=1; + if (m_mode == "Q65") m_q65ClearAveragesPending = true; if(m_mode=="Echo") { echocom_.nsum=0; m_echoGraph->clearAvg(); @@ -660,15 +658,20 @@ void MainWindow::reset_transmit_controls_after_stop () void MainWindow::on_stopTxButton_clicked() // Stop Tx { - noteTxStopReason (TxEvidence::TxStopReason::UserHalt); + requestTxStop (TxEvidence::TxStopReason::UserHalt); +} + +void MainWindow::requestTxStop (TxEvidence::TxStopReason reason) +{ + noteTxStopReason (reason); + bool const pending_start = m_tx_when_ready || ptt1Timer.isActive (); + m_tx_when_ready = false; + ptt1Timer.stop (); + m_restart = false; if (m_beaconTxController.txLifecycle () == BeaconTx::TxLifecycle::Decided || m_beaconTxController.txLifecycle () == BeaconTx::TxLifecycle::StartRequested) { - m_tx_when_ready = false; - ptt1Timer.stop (); processBeaconActions (m_beaconTxController.transmitWindowEnded ()); - if (g_iptt == 1 || m_transmitting) stopTx (); - else g_iptt = 0; } if (m_beaconTxController.active ()) { @@ -677,6 +680,15 @@ void MainWindow::on_stopTxButton_clicked() // Stop Tx if (m_tune) stop_tuning (); if (m_auto) auto_tx_mode (false); reset_transmit_controls_after_stop (); + // Reported PTT may remain high while the delayed PTT-off is already pending. + if (pending_start || g_iptt == 1 || m_transmitting + || m_jttyTxLifecycle.active () || !m_jttyTransmitQueue.empty ()) + { + stopTx (); + } +#ifdef WIN32 + finalizeMmttyExternalAbort (); +#endif } void MainWindow::on_pbR2T_clicked() @@ -1044,12 +1056,7 @@ void MainWindow::on_pb24G_clicked() void MainWindow::on_pbSendMessage_clicked() { - submitJttyDraft (ui->Tx_Message->text ().toUpper ()); -} - -void MainWindow::on_Tx_Message_returnPressed() -{ - on_pbSendMessage_clicked(); + commitJttyLiveEntry (); } void MainWindow::on_pbF1_clicked() -- cgit v1.2.3