void FvUpdater::SkipUpdate() { qDebug() << "Skip update"; FvAvailableUpdate* proposedUpdate = GetProposedUpdate(); if (! proposedUpdate) { qWarning() << "Proposed update is NULL (shouldn't be at this point)"; return; } // Start ignoring this particular version FVIgnoredVersions::IgnoreVersion(proposedUpdate->GetEnclosureVersion()); hideUpdaterWindow(); hideUpdateConfirmationDialog(); // if any; shouldn't be shown at this point, but who knows }
void FvUpdater::SkipUpdate() { qDebug() << "Skip update"; FvAvailableUpdate* proposedUpdate = GetProposedUpdate(); if (! proposedUpdate) { qWarning() << "Proposed update is NULL (shouldn't be at this point)"; return; } // Start ignoring this particular version FVIgnoredVersions::IgnoreVersion(proposedUpdate->GetEnclosureVersion()); #ifdef FV_GUI hideUpdaterWindow(); #endif }
void FvUpdater::UpdateInstallationConfirmed() { qDebug() << "Confirm update installation"; FvAvailableUpdate* proposedUpdate = GetProposedUpdate(); if (! proposedUpdate) { qWarning() << "Proposed update is NULL (shouldn't be at this point)"; return; } // Open a link if (! QDesktopServices::openUrl(proposedUpdate->GetEnclosureUrl())) { showErrorDialog(tr("Unable to open this link in a browser. Please do it manually."), true); return; } hideUpdaterWindow(); hideUpdateConfirmationDialog(); }