Skip to content
Snippets Groups Projects
Commit a888a67b authored by akiraohgaki's avatar akiraohgaki
Browse files

Fix

parent d667071e
Branches
Tags
No related merge requests found
...@@ -40,14 +40,14 @@ QString AppImageUpdater::errorString() const ...@@ -40,14 +40,14 @@ QString AppImageUpdater::errorString() const
QString AppImageUpdater::describeAppImage() const QString AppImageUpdater::describeAppImage() const
{ {
std::string description = ""; std::string description = "";
updater_.describeAppImage(description); updater_->describeAppImage(description);
return QString::fromStdString(description); return QString::fromStdString(description);
} }
bool AppImageUpdater::checkAppImage() const bool AppImageUpdater::checkAppImage() const
{ {
bool updateAvailable = false; bool updateAvailable = false;
updater_.checkForChanges(updateAvailable); updater_->checkForChanges(updateAvailable);
return updateAvailable; return updateAvailable;
} }
...@@ -56,7 +56,7 @@ void AppImageUpdater::updateAppImage() ...@@ -56,7 +56,7 @@ void AppImageUpdater::updateAppImage()
isFinishedWithNoError_ = false; isFinishedWithNoError_ = false;
errorString_ = ""; errorString_ = "";
if (!updater_.start()) { if (!updater_->start()) {
emit finished(this); emit finished(this);
return; return;
} }
...@@ -71,15 +71,15 @@ void AppImageUpdater::checkUpdaterProgress() ...@@ -71,15 +71,15 @@ void AppImageUpdater::checkUpdaterProgress()
{ {
if (!updater_->isDone()) { if (!updater_->isDone()) {
double progress; double progress;
if (updater_.progress(progress)) { if (updater_->progress(progress)) {
emit updateProgress(id_, progress); emit updateProgress(id_, progress);
} }
return; return;
} }
if (updater_.hasError()) { if (updater_->hasError()) {
std::string message; std::string message;
while (updater_.nextStatusMessage(message)) { while (updater_->nextStatusMessage(message)) {
errorString_ += QString::fromStdString(message) + "\n"; errorString_ += QString::fromStdString(message) + "\n";
} }
emit finished(this); emit finished(this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment