Verified Commit 41a12cba authored by azubieta's avatar azubieta

Validate checkForChanges return value

parent 844cf6f6
Pipeline #1117 passed with stage
in 7 minutes and 27 seconds
......@@ -39,10 +39,10 @@ void AppUpdater::doUpdateLookUp()
QtConcurrent::run([=]() {
appimage::update::Updater updater(appImagePath.toStdString());
bool updateAvailable; // this is an output parameter!!!
updater.checkForChanges(updateAvailable);
bool updateAvailable = false; // this is an output parameter!!!
bool succed = updater.checkForChanges(updateAvailable);
if (updateAvailable) {
if (succed && updateAvailable) {
qDebug() << "Update available";
emit this->updateAvailable();
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment