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:
Joe Taylor 2015-07-01 17:38:18 +00:00
parent 4445cc6b9b
commit 5250e0765a
2 changed files with 12 additions and 18 deletions

View File

@ -845,8 +845,10 @@ int main(int argc, char *argv[])
}
int npk=0;
for(j=1; j<410; j++) {
if((smspec[j]>smspec[j-1]) && (smspec[j]>smspec[j+1]) && (npk<200)) {
// for(j=1; j<410; j++) {
// 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;
snr0[npk]=10*log10(smspec[j])-snr_scaling_factor;
npk++;

View File

@ -3330,19 +3330,11 @@ void MainWindow::band_changed (Frequency f)
void MainWindow::enable_DXCC_entity (bool on)
{
if (on)
{
// re-read the log and cty.dat files
m_logBook.init();
}
if (on) // adjust the proportions between the two text displays
{
ui->gridLayout->setColumnStretch(0,55);
if (on and m_mode.mid(0,4)!="WSPR" and m_mode!="Echo") {
m_logBook.init(); // re-read the log and cty.dat files
ui->gridLayout->setColumnStretch(0,55); // adjust proportions of text displays
ui->gridLayout->setColumnStretch(1,45);
}
else
{
} else {
ui->gridLayout->setColumnStretch(0,0);
ui->gridLayout->setColumnStretch(1,0);
}