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
This commit is contained in:
Joe Taylor 2018-02-06 20:53:33 +00:00
parent ebd7f465fd
commit 444b054e24

View File

@ -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;