From a888a67b61427d9aaf410fd310a4cecc8e959824 Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Wed, 20 Dec 2017 01:10:48 +0900 Subject: [PATCH] Fix --- app/src/updaters/appimageupdater.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/updaters/appimageupdater.cpp b/app/src/updaters/appimageupdater.cpp index de2e8b2..3f0d04b 100644 --- a/app/src/updaters/appimageupdater.cpp +++ b/app/src/updaters/appimageupdater.cpp @@ -40,14 +40,14 @@ QString AppImageUpdater::errorString() const QString AppImageUpdater::describeAppImage() const { std::string description = ""; - updater_.describeAppImage(description); + updater_->describeAppImage(description); return QString::fromStdString(description); } bool AppImageUpdater::checkAppImage() const { bool updateAvailable = false; - updater_.checkForChanges(updateAvailable); + updater_->checkForChanges(updateAvailable); return updateAvailable; } @@ -56,7 +56,7 @@ void AppImageUpdater::updateAppImage() isFinishedWithNoError_ = false; errorString_ = ""; - if (!updater_.start()) { + if (!updater_->start()) { emit finished(this); return; } @@ -71,15 +71,15 @@ void AppImageUpdater::checkUpdaterProgress() { if (!updater_->isDone()) { double progress; - if (updater_.progress(progress)) { + if (updater_->progress(progress)) { emit updateProgress(id_, progress); } return; } - if (updater_.hasError()) { + if (updater_->hasError()) { std::string message; - while (updater_.nextStatusMessage(message)) { + while (updater_->nextStatusMessage(message)) { errorString_ += QString::fromStdString(message) + "\n"; } emit finished(this); -- GitLab