mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 21:40:52 -05: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,8 +4495,13 @@ void MainWindow::band_changed (Frequency f)
 | 
			
		||||
  // Set the attenuation value if options are checked
 | 
			
		||||
  QString curBand = ui->bandComboBox->currentText();
 | 
			
		||||
  if (m_config.pwrBandTxMemory() && !m_tune) {
 | 
			
		||||
      if (m_pwrBandTxMemory.contains(curBand)) {
 | 
			
		||||
        ui->outAttenuation->setValue(m_pwrBandTxMemory[curBand].toInt());
 | 
			
		||||
      }
 | 
			
		||||
      else {
 | 
			
		||||
        m_pwrBandTxMemory[curBand] = ui->outAttenuation->value();
 | 
			
		||||
      }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (m_bandEdited) {
 | 
			
		||||
    if (!m_mode.startsWith ("WSPR")) { // band hopping preserves auto Tx
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user