"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/utilities/geolocation/geoiface/backends/backend-geonamesUS-rg.cpp" between
digikam-6.2.0.tar.xz and digikam-6.3.0.tar.xz

About: digiKam is an advanced digital photo management application.

backend-geonamesUS-rg.cpp  (digikam-6.2.0.tar.xz):backend-geonamesUS-rg.cpp  (digikam-6.3.0.tar.xz)
skipping to change at line 230 skipping to change at line 230
{ {
return QLatin1String("GeonamesUS"); return QLatin1String("GeonamesUS");
} }
void BackendGeonamesUSRG::slotFinished(QNetworkReply* reply) void BackendGeonamesUSRG::slotFinished(QNetworkReply* reply)
{ {
if (reply->error() != QNetworkReply::NoError) if (reply->error() != QNetworkReply::NoError)
{ {
d->errorMessage = reply->errorString(); d->errorMessage = reply->errorString();
emit signalRGReady(d->jobs.first().request); emit signalRGReady(d->jobs.first().request);
reply->deleteLater();
d->jobs.clear(); d->jobs.clear();
return; return;
} }
for (int i = 0 ; i < d->jobs.count() ; ++i) for (int i = 0 ; i < d->jobs.count() ; ++i)
{ {
if (d->jobs.at(i).netReply == reply) if (d->jobs.at(i).netReply == reply)
{ {
d->jobs[i].data.append(reply->readAll()); d->jobs[i].data.append(reply->readAll());
break; break;
skipping to change at line 272 skipping to change at line 273
d->jobs.removeAt(i); d->jobs.removeAt(i);
if (!d->jobs.isEmpty()) if (!d->jobs.isEmpty())
{ {
QTimer::singleShot(500, this, SLOT(nextPhoto())); QTimer::singleShot(500, this, SLOT(nextPhoto()));
} }
break; break;
} }
} }
reply->deleteLater();
} }
void BackendGeonamesUSRG::cancelRequests() void BackendGeonamesUSRG::cancelRequests()
{ {
d->jobs.clear(); d->jobs.clear();
d->errorMessage.clear(); d->errorMessage.clear();
} }
} // namespace Digikam } // namespace Digikam
 End of changes. 2 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)