From 444b054e241853cf50aaa3a7a67c120695fdd430 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 6 Feb 2018 20:53:33 +0000 Subject: [PATCH] Insert (inactive) code to forbid execution after an expiration date. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8463 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 3954c1d59..a996006b8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -3567,6 +3567,16 @@ void MainWindow::guiUpdate() if(m_config.my_callsign()=="SV5DKL") { Q_EMIT finished(); } +/* + qDebug() << "aa" << QDate::currentDate().toJulianDay() << QDate::currentDate().toJulianDay() - 2458150; + if((QDate::currentDate().toJulianDay() - 2458156) > 30) { + QString errorMsg; + MessageBox::critical_message (this, + "This release candidate has expired. Please upgrade\n" + "to latest release on the WSJT Home Page.\n", errorMsg); + Q_EMIT finished (); + } +*/ if(m_config.bHound()) { m_bWarnedHound=false; qint32 tHound=QDateTime::currentMSecsSinceEpoch()/1000 - m_tAutoOn;