mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 21:58:38 -05: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;
|
||||
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++;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user