SatellitesImportDialog.cpp   SatellitesImportDialog.cpp 
skipping to change at line 212 skipping to change at line 212
return; return;
} }
// An error is a completed download, isn't it? // An error is a completed download, isn't it?
activeDownloads.removeAll(networkReply); activeDownloads.removeAll(networkReply);
numberDownloadsComplete++; numberDownloadsComplete++;
if (progressBar) if (progressBar)
progressBar->setValue(numberDownloadsComplete); progressBar->setValue(numberDownloadsComplete);
// Then, see if there was an error... // Then, see if there was an error...
if (networkReply->error() != QNetworkReply::NoError) if (networkReply->error() != QNetworkReply::NoError || networkReply- >bytesAvailable()==0)
{ {
qWarning() << "Satellites: failed to download " << url qWarning() << "Satellites: failed to download " << url
<< networkReply->errorString(); << networkReply->errorString();
return; return;
} }
QTemporaryFile* tmpFile = new QTemporaryFile(); QTemporaryFile* tmpFile = new QTemporaryFile();
if (tmpFile->open()) if (tmpFile->open())
{ {
tmpFile->write(networkReply->readAll()); tmpFile->write(networkReply->readAll());
 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/