SimbadSearcher.cpp   SimbadSearcher.cpp 
skipping to change at line 75 skipping to change at line 75
} }
void SimbadLookupReply::delayTimerCompleted() void SimbadLookupReply::delayTimerCompleted()
{ {
reply = netMgr->get(QNetworkRequest(url)); reply = netMgr->get(QNetworkRequest(url));
connect(reply, SIGNAL(finished()), this, SLOT(httpQueryFinished())); connect(reply, SIGNAL(finished()), this, SLOT(httpQueryFinished()));
} }
void SimbadLookupReply::httpQueryFinished() void SimbadLookupReply::httpQueryFinished()
{ {
if (reply->error()!=QNetworkReply::NoError) if (reply->error()!=QNetworkReply::NoError || reply->bytesAvailable( )==0)
{ {
currentStatus = SimbadLookupErrorOccured; currentStatus = SimbadLookupErrorOccured;
errorString = QString("%1: %2").arg(q_("Network error")).arg (reply->errorString()); errorString = QString("%1: %2").arg(q_("Network error")).arg (reply->errorString());
emit statusChanged(); emit statusChanged();
return; return;
} }
// No error, try to parse the Simbad result // No error, try to parse the Simbad result
QByteArray line; QByteArray line;
bool found = false; bool found = false;
 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/