Commit 8fa12511 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Adapt to changes in newly released PkQt

This code was only run against master anyway
parent d60b1345
......@@ -21,6 +21,9 @@
#include "PackageKitMessages.h"
#include <PackageKit/Daemon>
#ifdef PKQT_0_10
#include <PackageKit/Offline>
#endif
#include <QDebug>
#include <QAction>
#include <QSet>
......@@ -182,7 +185,7 @@ void PackageKitUpdater::finished(PackageKit::Transaction::Exit exit, uint /*time
if (qEnvironmentVariableIsSet("PK_OFFLINE_UPDATE"))
#ifdef PKQT_0_10
PackageKit::Daemon::global()->offlineTrigger(PackageKit::Daemon::OfflineActionReboot);
PackageKit::Daemon::global()->offline()->trigger(PackageKit::Offline::ActionReboot);
#else
qWarning() << "PK_OFFLINE_UPDATE is set but discover was built against an old version of PackageKitQt that didn't support offline updates";
#endif
......
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