mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 13:30:52 -05:00 
			
		
		
		
	Fix the way tx status label is set for Fox transmissions.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8517 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									83fd77d8aa
								
							
						
					
					
						commit
						2fb7cfbdcc
					
				@ -3618,11 +3618,7 @@ void MainWindow::guiUpdate()
 | 
				
			|||||||
    if(m_transmitting) {
 | 
					    if(m_transmitting) {
 | 
				
			||||||
      char s[41];
 | 
					      char s[41];
 | 
				
			||||||
      if(m_config.bFox() and ui->tabWidget->currentIndex()==2) {
 | 
					      if(m_config.bFox() and ui->tabWidget->currentIndex()==2) {
 | 
				
			||||||
        if(foxcom_.nslots==1) {
 | 
					        sprintf(s,"Tx:  %d Slots",foxcom_.nslots);
 | 
				
			||||||
          sprintf(s,"Tx:  %s",foxcom_.cmsg[0]);
 | 
					 | 
				
			||||||
        } else {
 | 
					 | 
				
			||||||
          sprintf(s,"Tx:  %d Slots",foxcom_.nslots);
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        sprintf(s,"Tx: %s",msgsent);
 | 
					        sprintf(s,"Tx: %s",msgsent);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
@ -3643,8 +3639,9 @@ void MainWindow::guiUpdate()
 | 
				
			|||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          s[40]=0;
 | 
					          s[40]=0;
 | 
				
			||||||
          QString t{QString::fromLatin1(s)};
 | 
					          QString t{QString::fromLatin1(s)};
 | 
				
			||||||
//          if(m_mode=="FT8" and m_i3bit==1) t="Tx: RR73 NOW " + t.mid(4);
 | 
					          if(m_config.bFox() and ui->tabWidget->currentIndex()==2 and foxcom_.nslots==1) {
 | 
				
			||||||
//          if(m_mode=="FT8" and m_i3bit==2) t="Tx: NIL NOW " + t.mid(4);
 | 
					              t=m_fm1.trimmed();
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
          tx_status_label.setText(t.trimmed());
 | 
					          tx_status_label.setText(t.trimmed());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
@ -7655,6 +7652,7 @@ void MainWindow::foxGenWaveform(int i,QString fm)
 | 
				
			|||||||
  foxcom_.i3bit[i]=0;
 | 
					  foxcom_.i3bit[i]=0;
 | 
				
			||||||
  if(fm.indexOf("<")>0) foxcom_.i3bit[i]=1;
 | 
					  if(fm.indexOf("<")>0) foxcom_.i3bit[i]=1;
 | 
				
			||||||
  strncpy(&foxcom_.cmsg[i][0],fm.toLatin1(),40);   //Copy this message into cmsg[i]
 | 
					  strncpy(&foxcom_.cmsg[i][0],fm.toLatin1(),40);   //Copy this message into cmsg[i]
 | 
				
			||||||
 | 
					  if(i==0) m_fm1=fm;
 | 
				
			||||||
  QString t;
 | 
					  QString t;
 | 
				
			||||||
  t.sprintf(" Tx %d: ",i+1);
 | 
					  t.sprintf(" Tx %d: ",i+1);
 | 
				
			||||||
  writeFoxQSO(t + fm.trimmed());
 | 
					  writeFoxQSO(t + fm.trimmed());
 | 
				
			||||||
 | 
				
			|||||||
@ -569,6 +569,7 @@ private:
 | 
				
			|||||||
  QString m_opCall;
 | 
					  QString m_opCall;
 | 
				
			||||||
  QString m_houndCallers;        //Sorted list of Hound callers
 | 
					  QString m_houndCallers;        //Sorted list of Hound callers
 | 
				
			||||||
  QString m_fm0;
 | 
					  QString m_fm0;
 | 
				
			||||||
 | 
					  QString m_fm1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  QSet<QString> m_pfx;
 | 
					  QSet<QString> m_pfx;
 | 
				
			||||||
  QSet<QString> m_sfx;
 | 
					  QSet<QString> m_sfx;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user