mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-08 00:44:39 -04:00
Ensure Plus 2kHz Check Box is disabled in Transmit when required.
The Plus 2 kHz check box should not be enabled during transmit if the "Allow Tx Frequency Changes While Transmitting" is not checked. Also fixed a defect that caused the disabled during Tx state of some widgets to not clear due to transmit or tune period being shorter than a poll interval. Fixed by ensuring PTT changes are always signalled rather than waiting for the next poll. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4352 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
@@ -248,7 +248,14 @@ void TransceiverBase::update_mode (MODE m)
|
||||
|
||||
void TransceiverBase::update_PTT (bool state)
|
||||
{
|
||||
auto prior = m_->state_.ptt ();
|
||||
m_->state_.ptt (state);
|
||||
if (state != prior)
|
||||
{
|
||||
// always signal PTT changes because some MainWindow logic
|
||||
// depends on it
|
||||
update_complete ();
|
||||
}
|
||||
}
|
||||
|
||||
void TransceiverBase::update_complete ()
|
||||
|
||||
Reference in New Issue
Block a user