mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 07:15:34 +08:00
Log status when news is received
This commit is contained in:
committed by
Mathew Sutcliffe
parent
8119aafca4
commit
e89d7d7b15
@@ -122,6 +122,7 @@ void CSwiftLauncher::ps_displayLatestNews(QNetworkReply *reply)
|
|||||||
{
|
{
|
||||||
const QString html = nwReply->readAll().trimmed();
|
const QString html = nwReply->readAll().trimmed();
|
||||||
if (html.isEmpty()) { return; }
|
if (html.isEmpty()) { return; }
|
||||||
|
CLogMessage(this).info("Received news from '%1'") << nwReply->url().toString();
|
||||||
ui->tbr_LatestNews->setHtml(html); // causes QFSFileEngine::open: No file name specified
|
ui->tbr_LatestNews->setHtml(html); // causes QFSFileEngine::open: No file name specified
|
||||||
constexpr qint64 newNews = 72 * 3600 * 1000;
|
constexpr qint64 newNews = 72 * 3600 * 1000;
|
||||||
const qint64 deltaT = CNetworkUtils::lastModifiedSinceNow(nwReply.data());
|
const qint64 deltaT = CNetworkUtils::lastModifiedSinceNow(nwReply.data());
|
||||||
@@ -130,6 +131,10 @@ void CSwiftLauncher::ps_displayLatestNews(QNetworkReply *reply)
|
|||||||
ui->tb_Launcher->setCurrentWidget(ui->pg_LatestNews);
|
ui->tb_Launcher->setCurrentWidget(ui->pg_LatestNews);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CLogMessage(this).warning("Error received news from '%1'") << nwReply->url().toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSwiftLauncher::ps_distributionInfoAvailable(bool success)
|
void CSwiftLauncher::ps_distributionInfoAvailable(bool success)
|
||||||
|
|||||||
Reference in New Issue
Block a user