MultiLevelJsonBase.cpp   MultiLevelJsonBase.cpp 
skipping to change at line 172 skipping to change at line 172
{ {
qurl.setUrl(url); qurl.setUrl(url);
} }
else else
{ {
Q_ASSERT(parent->getBaseUrl().startsWith("http://")) ; Q_ASSERT(parent->getBaseUrl().startsWith("http://")) ;
qurl.setUrl(parent->getBaseUrl()+url); qurl.setUrl(parent->getBaseUrl()+url);
} }
Q_ASSERT(httpReply==NULL); Q_ASSERT(httpReply==NULL);
QNetworkRequest req(qurl); QNetworkRequest req(qurl);
req.setRawHeader("User-Agent", StelUtils::getApplicationName ().toLatin1()); req.setRawHeader("User-Agent", StelUtils::getUserAgentString ().toLatin1());
httpReply = getNetworkAccessManager().get(req); httpReply = getNetworkAccessManager().get(req);
//qDebug() << "Started downloading " << httpReply->request() .url().path(); //qDebug() << "Started downloading " << httpReply->request() .url().path();
Q_ASSERT(httpReply->error()==QNetworkReply::NoError); Q_ASSERT(httpReply->error()==QNetworkReply::NoError);
//qDebug() << httpReply->attribute(QNetworkRequest::SourceIs FromCacheAttribute).toBool(); //qDebug() << httpReply->attribute(QNetworkRequest::SourceIs FromCacheAttribute).toBool();
connect(httpReply, SIGNAL(finished()), this, SLOT(downloadFi nished())); connect(httpReply, SIGNAL(finished()), this, SLOT(downloadFi nished()));
//connect(httpReply, SIGNAL(error(QNetworkReply::NetworkErro r)), this, SLOT(downloadError(QNetworkReply::NetworkError))); //connect(httpReply, SIGNAL(error(QNetworkReply::NetworkErro r)), this, SLOT(downloadError(QNetworkReply::NetworkError)));
//connect(httpReply, SIGNAL(destroyed()), this, SLOT(replyDe stroyed())); //connect(httpReply, SIGNAL(destroyed()), this, SLOT(replyDe stroyed()));
downloading = true; downloading = true;
QString turl = qurl.toString(); QString turl = qurl.toString();
baseUrl = turl.left(turl.lastIndexOf('/')+1); baseUrl = turl.left(turl.lastIndexOf('/')+1);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/