From 767f53e79e416674bb37b3ce3e05e96cd900b700 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Wed, 3 Feb 2021 11:38:52 +0000 Subject: [PATCH] RC nag message and expiry --- widgets/mainwindow.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 132f8aa4c..8e442d05f 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -1024,7 +1024,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, if(QCoreApplication::applicationVersion().contains("-devel") or QCoreApplication::applicationVersion().contains("-rc")) { - QTimer::singleShot (0, this, SLOT (not_GA_warning_message ())); + QTimer::singleShot (0, this, SLOT (not_GA_warning_message ())); } ui->pbBestSP->setVisible(m_mode=="FT4"); @@ -1035,14 +1035,14 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, void MainWindow::not_GA_warning_message () { - // MessageBox::critical_message (this, - // "This is a pre-release version of WSJT-X 2.3.0 made\n" - // "available for testing purposes. By design it will\n" - // "be nonfunctional after 0000 UTC on Jan 19, 2021."); - // auto now = QDateTime::currentDateTimeUtc (); - // if (now >= QDateTime {{2021, 1, 19}, {0, 0}, Qt::UTC}) { - // Q_EMIT finished (); - // } + MessageBox::critical_message (this, + "This is a pre-release version of WSJT-X 2.4.0 made\n" + "available for testing purposes. By design it will\n" + "be nonfunctional after Apr 27, 2021."); + auto now = QDateTime::currentDateTimeUtc (); + if (now >= QDateTime {{2021, 4, 27}, {23, 59, 59, 999}, Qt::UTC}) { + Q_EMIT finished (); + } } void MainWindow::initialize_fonts ()