mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-29 12:52:28 -04:00
Prevents auto power tune from resetting attenuation to 0 by default.
Fix autotune for tx pwr on band changes to keep current level if never set. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7233 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
dcf8521c18
commit
e7237a0fa4
@ -4495,7 +4495,12 @@ void MainWindow::band_changed (Frequency f)
|
|||||||
// Set the attenuation value if options are checked
|
// Set the attenuation value if options are checked
|
||||||
QString curBand = ui->bandComboBox->currentText();
|
QString curBand = ui->bandComboBox->currentText();
|
||||||
if (m_config.pwrBandTxMemory() && !m_tune) {
|
if (m_config.pwrBandTxMemory() && !m_tune) {
|
||||||
ui->outAttenuation->setValue(m_pwrBandTxMemory[curBand].toInt());
|
if (m_pwrBandTxMemory.contains(curBand)) {
|
||||||
|
ui->outAttenuation->setValue(m_pwrBandTxMemory[curBand].toInt());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
m_pwrBandTxMemory[curBand] = ui->outAttenuation->value();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_bandEdited) {
|
if (m_bandEdited) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user