MeteorShowersMgr.cpp   MeteorShowersMgr.cpp 
skipping to change at line 334 skipping to change at line 334
void MeteorShowersMgr::updateFinished(QNetworkReply* reply) void MeteorShowersMgr::updateFinished(QNetworkReply* reply)
{ {
if (m_progressBar) if (m_progressBar)
{ {
m_progressBar->setValue(100); m_progressBar->setValue(100);
StelApp::getInstance().removeProgressBar(m_progressBar); StelApp::getInstance().removeProgressBar(m_progressBar);
m_progressBar = Q_NULLPTR; m_progressBar = Q_NULLPTR;
} }
if (reply->error() != QNetworkReply::NoError) if (reply->error() != QNetworkReply::NoError || reply->bytesAvailabl e()==0)
{ {
qWarning() << "MeteorShowersMgr: Failed to download!" << rep ly->url(); qWarning() << "MeteorShowersMgr: Failed to download!" << rep ly->url();
qWarning() << "MeteorShowersMgr: Error " << reply->errorStri ng(); qWarning() << "MeteorShowersMgr: Error " << reply->errorStri ng();
setStatusOfLastUpdate(FAILED); setStatusOfLastUpdate(FAILED);
return; return;
} }
QString tempPath(m_catalogPath + "_new.json"); QString tempPath(m_catalogPath + "_new.json");
QFile newCatalog(tempPath); QFile newCatalog(tempPath);
newCatalog.remove(); // always overwrites newCatalog.remove(); // always overwrites
skipping to change at line 604 skipping to change at line 604
" It means that this can occur in real life, but that we do not have proper" " It means that this can occur in real life, but that we do not have proper"
" data about its activity for the current ye ar." " data about its activity for the current ye ar."
"</li>" "</li>"
"<li>" "<li>"
"<b>Inactive:</b> " "<b>Inactive:</b> "
"the radiant is inactive for the current sky date." "the radiant is inactive for the current sky date."
"</li>" "</li>"
"</ul>" "</ul>"
"</p>"); "</p>");
info.version = METEORSHOWERS_PLUGIN_VERSION; info.version = METEORSHOWERS_PLUGIN_VERSION;
info.license = METEORSHOWERS_PLUGIN_LICENSE;
return info; return info;
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 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/