mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-29 20:10:28 -04:00 
			
		
		
		
	Only one text window in WSPR and Echo modes, even if "Show DXCC" is enabled.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5651 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									4445cc6b9b
								
							
						
					
					
						commit
						5250e0765a
					
				| @ -845,8 +845,10 @@ int main(int argc, char *argv[]) | |||||||
|         } |         } | ||||||
|          |          | ||||||
|         int npk=0; |         int npk=0; | ||||||
|         for(j=1; j<410; j++) { | 	//        for(j=1; j<410; j++) {
 | ||||||
|             if((smspec[j]>smspec[j-1]) && (smspec[j]>smspec[j+1]) && (npk<200)) { | 	//            if((smspec[j]>smspec[j-1]) && (smspec[j]>smspec[j+1]) && (npk<200)) {
 | ||||||
|  |         for(j=1; j<410; j=j+2) { | ||||||
|  |             if((smspec[j]>min_snr) && (npk<200)) { | ||||||
|                 freq0[npk]=(j-205)*df; |                 freq0[npk]=(j-205)*df; | ||||||
|                 snr0[npk]=10*log10(smspec[j])-snr_scaling_factor; |                 snr0[npk]=10*log10(smspec[j])-snr_scaling_factor; | ||||||
|                 npk++; |                 npk++; | ||||||
|  | |||||||
| @ -3330,19 +3330,11 @@ void MainWindow::band_changed (Frequency f) | |||||||
| 
 | 
 | ||||||
| void MainWindow::enable_DXCC_entity (bool on) | void MainWindow::enable_DXCC_entity (bool on) | ||||||
| { | { | ||||||
|   if (on) |   if (on and m_mode.mid(0,4)!="WSPR" and m_mode!="Echo") { | ||||||
|     { |     m_logBook.init();                        // re-read the log and cty.dat files
 | ||||||
|       // re-read the log and cty.dat files
 |     ui->gridLayout->setColumnStretch(0,55);  // adjust proportions of text displays
 | ||||||
|       m_logBook.init(); |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|   if (on)  // adjust the proportions between the two text displays
 |  | ||||||
|     { |  | ||||||
|       ui->gridLayout->setColumnStretch(0,55); |  | ||||||
|     ui->gridLayout->setColumnStretch(1,45); |     ui->gridLayout->setColumnStretch(1,45); | ||||||
|     } |   } else { | ||||||
|   else |  | ||||||
|     { |  | ||||||
|     ui->gridLayout->setColumnStretch(0,0); |     ui->gridLayout->setColumnStretch(0,0); | ||||||
|     ui->gridLayout->setColumnStretch(1,0); |     ui->gridLayout->setColumnStretch(1,0); | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user