"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gmic-qt/src/Updater.cpp" between
gmic_2.8.1.tar.gz and gmic_2.8.2.tar.gz

About: G’MIC (GREY’s Magic for Image Computing) is a framework for image processing. It provides several different user interfaces to convert/manipulate/filter/ visualize generic image datasets (usable standalone or as plug-in for GIMP and Krita).

Updater.cpp  (gmic_2.8.1):Updater.cpp  (gmic_2.8.2)
skipping to change at line 232 skipping to change at line 232
TIMING; TIMING;
QNetworkReply::NetworkError error = reply->error(); QNetworkReply::NetworkError error = reply->error();
if (error == QNetworkReply::NoError) { if (error == QNetworkReply::NoError) {
processReply(reply); processReply(reply);
} else { } else {
QString str; QString str;
QDebug d(&str); QDebug d(&str);
d << error; d << error;
str = str.trimmed(); str = str.trimmed();
_errorMessages << QString(tr("Error downloading %1<br/>Error %2: %3")).arg(r eply->request().url().toString()).arg(static_cast<int>(error)).arg(str); _errorMessages << QString(tr("Error downloading %1<br/>Error %2: %3")).arg(r eply->request().url().toString()).arg(static_cast<int>(error)).arg(str);
Logger::log("\n******* Update Error ******\n"); Logger::error("Update failed");
Logger::log(QString("Error: %1\n").arg(reply->errorString())); Logger::note(QString("Error string: %1").arg(reply->errorString()));
Logger::log("******* Full replay contents ******\n"); Logger::note("******* Full reply contents ******\n");
Logger::log(reply->readAll()); Logger::note(reply->readAll());
Logger::log(QString("\n******** HTTP Status: %1\n").arg(reply->attribute(QNe Logger::note(QString("******** HTTP Status: %1").arg(reply->attribute(QNetwo
tworkRequest::HttpStatusCodeAttribute).toInt())); rkRequest::HttpStatusCodeAttribute).toInt()));
} }
_pendingReplies.remove(reply); _pendingReplies.remove(reply);
if (_pendingReplies.isEmpty()) { if (_pendingReplies.isEmpty()) {
if (_errorMessages.isEmpty()) { if (_errorMessages.isEmpty()) {
emit updateIsDone(UpdateSuccessful); emit updateIsDone(UpdateSuccessful);
} else { } else {
emit updateIsDone(SomeUpdatesFailed); emit updateIsDone(SomeUpdatesFailed);
} }
_networkAccessManager->deleteLater(); _networkAccessManager->deleteLater();
_networkAccessManager = nullptr; _networkAccessManager = nullptr;
 End of changes. 1 change blocks. 
6 lines changed or deleted 6 lines changed or added

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