mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 13:30:52 -05:00 
			
		
		
		
	Fix a flaw that prevented Q65W decodes from being displayed in its main window.
This commit is contained in:
		
							parent
							
								
									5f94a115f7
								
							
						
					
					
						commit
						2fcf6c45fe
					
				@ -86,7 +86,8 @@ extern struct {                     //This is "common/datcom/..." in Fortran
 | 
			
		||||
extern struct {
 | 
			
		||||
  int ndecodes;
 | 
			
		||||
  int ncand;
 | 
			
		||||
  int nQDecoderBusy;
 | 
			
		||||
  int nQDecoderDone;
 | 
			
		||||
  int nWDecoderBusy;
 | 
			
		||||
  int nWTransmitting;
 | 
			
		||||
  char result[50][60];
 | 
			
		||||
} decodes_;
 | 
			
		||||
 | 
			
		||||
@ -46,7 +46,6 @@ subroutine decode0(dd,ss,savg)
 | 
			
		||||
       mousedf,mousefqso,nagain,ndecdone,nfshift,max_drift,         &
 | 
			
		||||
       nfcal,mycall,hiscall,hisgrid,nhsym,nfsample,nmode,ndop00)
 | 
			
		||||
  call timer('q65wa   ',1)
 | 
			
		||||
  flush(6)
 | 
			
		||||
 | 
			
		||||
  return
 | 
			
		||||
end subroutine decode0
 | 
			
		||||
 | 
			
		||||
@ -70,7 +70,6 @@ subroutine q65wa(dd,ss,savg,newdat,nutc,fcenter,ntol,nfa,nfb,         &
 | 
			
		||||
     if(idec.ge.0) candec(icand)=.true.
 | 
			
		||||
  enddo  ! icand
 | 
			
		||||
  ndecdone=2
 | 
			
		||||
  nQDecoderDone=1
 | 
			
		||||
 | 
			
		||||
  return
 | 
			
		||||
end subroutine q65wa
 | 
			
		||||
 | 
			
		||||
@ -743,7 +743,7 @@ void MainWindow::decoderFinished()                      //diskWriteFinished
 | 
			
		||||
  m_startAnother=m_loopall;
 | 
			
		||||
  ui->DecodeButton->setStyleSheet("");
 | 
			
		||||
  decodeBusy(false);
 | 
			
		||||
 | 
			
		||||
  decodes_.nQDecoderDone=1;
 | 
			
		||||
  QString t1;
 | 
			
		||||
  t1=t1.asprintf(" %3d/%d  ",decodes_.ndecodes,decodes_.ncand);
 | 
			
		||||
  lab5->setText(t1);
 | 
			
		||||
@ -908,6 +908,7 @@ void MainWindow::decode()                                       //decode()
 | 
			
		||||
 | 
			
		||||
  decodes_.ndecodes=0;
 | 
			
		||||
  decodes_.ncand=0;
 | 
			
		||||
  decodes_.nQDecoderDone=0;
 | 
			
		||||
  m_fetched=0;
 | 
			
		||||
  int itimer=0;
 | 
			
		||||
  watcher3.setFuture(QtConcurrent::run (std::bind (q65c_, &itimer)));
 | 
			
		||||
@ -955,6 +956,7 @@ void MainWindow::guiUpdate()
 | 
			
		||||
  if(decodes_.ndecodes > m_fetched) {
 | 
			
		||||
    while(m_fetched<decodes_.ndecodes) {
 | 
			
		||||
      QString t=QString::fromLatin1(decodes_.result[m_fetched]);
 | 
			
		||||
//      qDebug() << "CCC" << nsec%60 << decodes_.ndecodes << m_fetched << t;
 | 
			
		||||
      ui->decodedTextBrowser->append(t.trimmed());
 | 
			
		||||
      m_fetched++;
 | 
			
		||||
    }
 | 
			
		||||
@ -965,6 +967,7 @@ void MainWindow::guiUpdate()
 | 
			
		||||
 | 
			
		||||
  if(nsec != m_sec0) {                                     //Once per second
 | 
			
		||||
//    qDebug() << "AAA" << nsec%60 << ipc_wsjtx[3] << ipc_wsjtx[4]<< m_monitoring;
 | 
			
		||||
//    qDebug() << "BBB" << nsec%60 << decodes_.ndecodes << m_fetched;
 | 
			
		||||
 | 
			
		||||
    if(m_pctZap>30.0) {
 | 
			
		||||
      lab4->setStyleSheet("QLabel{background-color: #ff0000}");
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user