This commit is contained in:
Jordan Sherer 2018-08-28 16:49:44 -04:00
parent 65a19e4707
commit 2250589f83
2 changed files with 13 additions and 7 deletions

View File

@ -1299,15 +1299,20 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
if (!m_valid) throw std::runtime_error {"Fatal initialization exception"};
}
QDate eol(2018, 9, 17);
void MainWindow::expiry_warning_message()
{
if(QDate::currentDate() >= eol){
MessageBox::critical_message (this, QString("This pre-release development build of FT8Call has expired. Please upgrade to the latest version."));
close();
return;
}
}
void MainWindow::not_GA_warning_message ()
{
QDate eol(2018, 9, 15);
if(QDate::currentDate() >= eol){
MessageBox::critical_message (this, QString("This pre-release development build of FT8Call has expired. Please upgrade to the latest version."));
close();
return;
}
expiry_warning_message();
MessageBox::critical_message (this,
QString("This version of %1 is a pre-release development\n"

View File

@ -364,6 +364,7 @@ private slots:
void on_sbMax_dB_valueChanged(int n);
void on_pbFoxReset_clicked();
void on_comboBoxHoundSort_activated (int index);
void expiry_warning_message ();
void not_GA_warning_message ();
private: