mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-31 13:10:19 -04:00 
			
		
		
		
	Display calls in ActiveStations only when they are "ready to call". Erase on band change.
This commit is contained in:
		
							parent
							
								
									fd7caa8cd6
								
							
						
					
					
						commit
						ab48d77d0f
					
				| @ -83,3 +83,8 @@ void ActiveStations::setClickOK(bool b) | ||||
| { | ||||
|   m_clickOK=b; | ||||
| } | ||||
| 
 | ||||
| void ActiveStations::erase() | ||||
| { | ||||
|   ui->RecentStationsPlainTextEdit->clear(); | ||||
| } | ||||
|  | ||||
| @ -24,6 +24,7 @@ public: | ||||
|   int  maxRecent(); | ||||
|   int  maxAge(); | ||||
|   void setClickOK(bool b); | ||||
|   void erase(); | ||||
|   Q_SLOT void select(); | ||||
| 
 | ||||
|   bool m_clickOK=false; | ||||
|  | ||||
| @ -3373,7 +3373,6 @@ void MainWindow::ARRL_Digi_Update(DecodedText dt) | ||||
|   ActiveCall ac; | ||||
|   RecentCall rc; | ||||
| 
 | ||||
| 
 | ||||
|   if(deGrid.contains(grid_regexp)) { | ||||
|      if(!m_activeCall.contains(deCall) or deGrid!=m_activeCall.value(deCall).grid4) { | ||||
|        // Transmitting station's call is not already in QMap "m_activeCall", or grid has changed.
 | ||||
| @ -3444,6 +3443,7 @@ void MainWindow::ARRL_Digi_Display() | ||||
|     if(age>maxAge) { | ||||
|       icall.remove(); | ||||
|     } else { | ||||
|       if(m_recentCall.value(deCall).ready2call) { | ||||
|         i++; | ||||
|         int az=m_activeCall[deCall].az; | ||||
|         deGrid=m_activeCall[deCall].grid4; | ||||
| @ -3459,6 +3459,7 @@ void MainWindow::ARRL_Digi_Display() | ||||
|         list.append(t1); | ||||
|       } | ||||
|     } | ||||
|   } | ||||
|   if(i==0) return; | ||||
|   int jz=i; | ||||
|   m_ActiveStationsWidget->setClickOK(false); | ||||
| @ -7465,6 +7466,11 @@ void MainWindow::handle_transceiver_update (Transceiver::TransceiverState const& | ||||
|           if (m_lastDialFreq != m_freqNominal && | ||||
|               (m_mode != "MSK144" | ||||
|                || !(ui->cbCQTx->isEnabled () && ui->cbCQTx->isVisible () && ui->cbCQTx->isChecked()))) { | ||||
|             if(m_lastDialFreq != m_freqNominal and m_ActiveStationsWidget->isVisible()) { | ||||
|               m_recentCall.clear(); | ||||
|               m_ActiveStationsWidget->erase(); | ||||
|             } | ||||
| 
 | ||||
|             m_lastDialFreq = m_freqNominal; | ||||
|             m_secBandChanged=QDateTime::currentMSecsSinceEpoch()/1000; | ||||
|             pskSetLocal (); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user