From 2250589f83da81797d645fb647f65f673fab481b Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Tue, 28 Aug 2018 16:49:44 -0400 Subject: [PATCH] Bump EOL --- mainwindow.cpp | 19 ++++++++++++------- mainwindow.h | 1 + 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 5907df0..22a8557 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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" diff --git a/mainwindow.h b/mainwindow.h index 3774362..7357f2a 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -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: