Bump EOL. Ensure grid is also configured before transmit. Optionally show warning message. Display configuration when not configured on application load
This commit is contained in:
parent
fe1463b730
commit
4698db27f6
@ -1281,16 +1281,13 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
|||||||
qDebug() << "packing" << Varicode::pack72bits((((quint64)1)<<62)-1, (1<<7)-1) << v << r;
|
qDebug() << "packing" << Varicode::pack72bits((((quint64)1)<<62)-1, (1<<7)-1) << v << r;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 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"};
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::not_GA_warning_message ()
|
void MainWindow::not_GA_warning_message ()
|
||||||
{
|
{
|
||||||
QDate eol(2018, 9, 3);
|
QDate eol(2018, 9, 15);
|
||||||
|
|
||||||
if(QDate::currentDate() >= eol){
|
if(QDate::currentDate() >= eol){
|
||||||
MessageBox::critical_message (this, QString("This pre-release development build of FT8Call has expired. Please upgrade to the latest version."));
|
MessageBox::critical_message (this, QString("This pre-release development build of FT8Call has expired. Please upgrade to the latest version."));
|
||||||
@ -1305,17 +1302,8 @@ void MainWindow::not_GA_warning_message ()
|
|||||||
"and carry a responsiblity to report any problems to:\n"
|
"and carry a responsiblity to report any problems to:\n"
|
||||||
"Jordan Sherer (KN4CRD) kn4crd@gmail.com\n\n").arg(QApplication::applicationName()).arg(eol.toString()));
|
"Jordan Sherer (KN4CRD) kn4crd@gmail.com\n\n").arg(QApplication::applicationName()).arg(eol.toString()));
|
||||||
|
|
||||||
#if 0
|
|
||||||
for(int i = 0; i < 13; i++){
|
ensureCallsignSet(false);
|
||||||
CallDetail cd;
|
|
||||||
cd.call = QString("KN%1CRD").arg(i);
|
|
||||||
cd.freq = 1200;
|
|
||||||
cd.bits = Varicode::FT8CallLast;
|
|
||||||
cd.utcTimestamp = QDateTime::currentDateTimeUtc();
|
|
||||||
logCallActivity(cd, false);
|
|
||||||
m_rxDirty = true;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::initialize_fonts ()
|
void MainWindow::initialize_fonts ()
|
||||||
@ -5888,9 +5876,15 @@ void MainWindow::resetMessageUI(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MainWindow::ensureCallsignSet(){
|
bool MainWindow::ensureCallsignSet(bool alert){
|
||||||
if(m_config.my_callsign().trimmed().isEmpty()){
|
if(m_config.my_callsign().trimmed().isEmpty()){
|
||||||
MessageBox::warning_message(this, tr ("Please enter your callsign in the settings."));
|
if(alert) MessageBox::warning_message(this, tr ("Please enter your callsign in the settings."));
|
||||||
|
on_actionSettings_triggered();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(m_config.my_grid().trimmed().isEmpty()){
|
||||||
|
if(alert) MessageBox::warning_message(this, tr ("Please enter your grid locator in the settings."));
|
||||||
on_actionSettings_triggered();
|
on_actionSettings_triggered();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -142,7 +142,7 @@ public slots:
|
|||||||
void resetMessage();
|
void resetMessage();
|
||||||
void resetMessageUI();
|
void resetMessageUI();
|
||||||
void restoreMessage();
|
void restoreMessage();
|
||||||
bool ensureCallsignSet();
|
bool ensureCallsignSet(bool alert=true);
|
||||||
void createMessage(QString const& text);
|
void createMessage(QString const& text);
|
||||||
void createMessageTransmitQueue(QString const& text);
|
void createMessageTransmitQueue(QString const& text);
|
||||||
void resetMessageTransmitQueue();
|
void resetMessageTransmitQueue();
|
||||||
|
Loading…
Reference in New Issue
Block a user