mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Minor: move a comment closer to the real code mentioned in the comment
This commit is contained in:
committed by
Alejandro Martinez
parent
48c6717319
commit
9d7b07bf94
@@ -131,10 +131,10 @@ CyclingAnalytics::readdir(QString path, QStringList &errors, QDateTime, QDateTim
|
||||
loop.exec();
|
||||
QTimer::singleShot(30000,&loop, SLOT(quit())); // timeout after 30 seconds
|
||||
|
||||
// if successful, lets unpack
|
||||
int statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||
printd("fetch response: %d: %s\n", reply->error(), reply->errorString().toStdString().c_str());
|
||||
|
||||
// if successful, lets unpack
|
||||
if (reply->error() == 0) {
|
||||
|
||||
// get the data
|
||||
|
||||
@@ -199,12 +199,11 @@ Xert::readdir(QString path, QStringList &errors, QDateTime from, QDateTime to)
|
||||
connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
|
||||
loop.exec();
|
||||
|
||||
// if successful, lets unpack
|
||||
int statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||
printd("fetch response: %d: %s\n", reply->error(), reply->errorString().toStdString().c_str());
|
||||
|
||||
// if successful, lets unpack
|
||||
if (reply->error() == 0) {
|
||||
|
||||
// get the data
|
||||
QByteArray r = reply->readAll();
|
||||
|
||||
@@ -308,10 +307,10 @@ Xert::readActivityDetail(QString path, bool withSessionData)
|
||||
connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
|
||||
loop.exec();
|
||||
|
||||
// if successful, lets unpack
|
||||
int statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||
printd("fetch response: %d: %s\n", reply->error(), reply->errorString().toStdString().c_str());
|
||||
|
||||
// if successful, lets unpack
|
||||
if (reply->error() == 0) {
|
||||
|
||||
// get the data
|
||||
|
||||
Reference in New Issue
Block a user