diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:35:06 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:35:06 +0100 |
| commit | 82ebb1ed1af30cee4dfbb1c628431d32885a00e0 (patch) | |
| tree | 1a1f782d3e576b758be0bc61171574a7cd8f2376 /widgets/mainwindow_slots.cpp | |
| parent | 061658210acb6425517733ea012dda803a7f72a1 (diff) | |
| parent | 61d684922b0f1c8455cc60eb3d123df058c9e1f5 (diff) | |
Merge tag 'debian/3.3.0_beta2+dfsg-1' into hibbian/trixie-backports
tagging wsjtx 3.3.0~beta2+dfsg-1
Diffstat (limited to 'widgets/mainwindow_slots.cpp')
| -rw-r--r-- | widgets/mainwindow_slots.cpp | 35 |
1 files changed, 21 insertions, 14 deletions
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() |
