mirror of https://github.com/saitohirga/WSJT-X.git
Restrict Fox activity with Nslots>1.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8469 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
23213b2204
commit
c81d17a5f4
|
@ -920,7 +920,6 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||||
ui->cbMenus->setChecked(true);
|
ui->cbMenus->setChecked(true);
|
||||||
ui->cbMenus->setChecked(false);
|
ui->cbMenus->setChecked(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// this must be the last statement of constructor
|
// this must be the last statement of constructor
|
||||||
if (!m_valid) throw std::runtime_error {"Fatal initialization exception"};
|
if (!m_valid) throw std::runtime_error {"Fatal initialization exception"};
|
||||||
}
|
}
|
||||||
|
@ -3562,6 +3561,17 @@ void MainWindow::guiUpdate()
|
||||||
} else {
|
} else {
|
||||||
m_bVHFwarned=false;
|
m_bVHFwarned=false;
|
||||||
}
|
}
|
||||||
|
if(m_config.bFox()) {
|
||||||
|
if(m_config.my_callsign()=="K1JT" or m_config.my_callsign()=="K9AN" or
|
||||||
|
m_config.my_callsign()=="G4WJS" or m_config.my_callsign()=="KH1/KH7Z" or
|
||||||
|
m_config.my_callsign().contains("AA7A") or m_config.my_callsign().contains("N1DG")) {
|
||||||
|
ui->sbNslots->setMaximum(5);
|
||||||
|
ui->sbNslots->setEnabled(true);
|
||||||
|
} else {
|
||||||
|
ui->sbNslots->setMaximum(1);
|
||||||
|
ui->sbNslots->setEnabled(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
qDebug() << "aa" << QDate::currentDate().toJulianDay() << QDate::currentDate().toJulianDay() - 2458150;
|
qDebug() << "aa" << QDate::currentDate().toJulianDay() << QDate::currentDate().toJulianDay() - 2458150;
|
||||||
if((QDate::currentDate().toJulianDay() - 2458156) > 30) {
|
if((QDate::currentDate().toJulianDay() - 2458156) > 30) {
|
||||||
|
|
|
@ -1649,7 +1649,10 @@ list. The list can be maintained in Settings (F2).</string>
|
||||||
<number>5</number>
|
<number>5</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="value">
|
<property name="value">
|
||||||
<number>5</number>
|
<number>1</number>
|
||||||
|
</property>
|
||||||
|
<property name="displayIntegerBase">
|
||||||
|
<number>10</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in New Issue