StelTexture.cpp   StelTexture.cpp 
skipping to change at line 159 skipping to change at line 159
if (errorOccured) if (errorOccured)
return false; return false;
// The texture is not yet fully loaded // The texture is not yet fully loaded
if (downloaded==false && httpReply==NULL && fullPath.startsWith("htt p://")) if (downloaded==false && httpReply==NULL && fullPath.startsWith("htt p://"))
{ {
// We need to start download // We need to start download
QNetworkRequest req = QNetworkRequest(QUrl(fullPath)); QNetworkRequest req = QNetworkRequest(QUrl(fullPath));
// Define that preference should be given to cached files (n o etag checks) // Define that preference should be given to cached files (n o etag checks)
req.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferCache); req.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferCache);
req.setRawHeader("User-Agent", StelApp::getApplicationName() .toAscii());
httpReply = StelApp::getInstance().getNetworkAccessManager() ->get(req); httpReply = StelApp::getInstance().getNetworkAccessManager() ->get(req);
connect(httpReply, SIGNAL(finished()), this, SLOT(downloadFi nished())); connect(httpReply, SIGNAL(finished()), this, SLOT(downloadFi nished()));
return false; return false;
} }
// From this point we assume that fullPath is valid // From this point we assume that fullPath is valid
// Start loading the image in a thread and return imediately // Start loading the image in a thread and return imediately
if (!isLoadingImage && downloaded==true) if (!isLoadingImage && downloaded==true)
{ {
isLoadingImage = true; isLoadingImage = true;
 End of changes. 1 change blocks. 
0 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/