Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 2f80d7ce authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Properly brace if

parent d082ab02
......@@ -195,13 +195,14 @@ void PackageKitUpdater::finished(PackageKit::Transaction::Exit exit, uint /*time
m_backend->checkForUpdates();
fetchLastUpdateTime();
if (qEnvironmentVariableIsSet("PK_OFFLINE_UPDATE"))
if (qEnvironmentVariableIsSet("PK_OFFLINE_UPDATE")) {
#ifdef PKQT_1_0
PackageKit::Daemon::global()->offline()->trigger(PackageKit::Offline::ActionReboot);
Q_EMIT passiveMessage(i18n("Please restart the computer to finish the installation"));
#else
qWarning() << "PK_OFFLINE_UPDATE is set but discover was built against an old version of PackageKitQt that didn't support offline updates";
#endif
}
}
void PackageKitUpdater::cancellableChanged()
......
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