summaryrefslogtreecommitdiff
path: root/widgets/mainwindow_slots.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
commit76956486fa7ef52a51d4e56df1e13a9f19a6c93c (patch)
treefe0c394439fdc167d1970372e8998874090854dd /widgets/mainwindow_slots.cpp
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
parentffc62c792c9a5196cb4ce7a353287dfe20db6524 (diff)
Update upstream source from tag 'upstream/3.3.0_beta1+dfsg'
Update to upstream version '3.3.0~beta1+dfsg' with Debian dir 85037bbb9376721108594b59b54ead82ac6924a3
Diffstat (limited to 'widgets/mainwindow_slots.cpp')
-rw-r--r--widgets/mainwindow_slots.cpp35
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()