Verified Commit 41a12cba authored by azubieta's avatar azubieta
Browse files

Validate checkForChanges return value

parent 844cf6f6
......@@ -39,10 +39,10 @@ void AppUpdater::doUpdateLookUp()
QtConcurrent::run([=]() {
appimage::update::Updater updater(appImagePath.toStdString());
bool updateAvailable; // this is an output parameter!!!
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 {
Supports Markdown
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