Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ytobi's aria2 fixes #4

Open
wants to merge 16 commits into
base: aria2
Choose a base branch
from
13 changes: 8 additions & 5 deletions launcher/updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,12 +493,15 @@ void Updater::taskDownload(QDir &installDir, const QUrl &url, const QString &has
// (Yeah, we're gonna do this crappy trick again...)
eventLoop.reset(new QEventLoop());
QArchive::DiskExtractor extractor(filename, installDir.path(), this, false);
// Note. The parmeters of the signal QArchive::DiskExtractor::error do not match the slot.
// QArchive::DiskExtractor::error emits short code only
QObject::connect(&extractor, &QArchive::DiskExtractor::error,
[&](short code, const QString &file) {
error = true;
errorMsg = file;
errorCode = code;
qCritical() << "Error extracting" << file << "- code" << code;
[&](short code) {
const QString file("Unknown file");
error = true;
errorMsg = file;
errorCode = code;
qCritical() << "Error extracting" << file << "- code" << code;
Comment on lines +499 to +504
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change in this signal's signature is due to a major version change in QArchive that apparently was applied to this branch. I would be careful because I have not tested that new version.

emit eventLoop->quit();
});
QObject::connect(&extractor, &QArchive::DiskExtractor::progress,
Expand Down