diff options
| author | Heiko Becker <[email protected]> | 2023-05-09 08:59:14 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2023-05-09 08:49:28 +0000 |
| commit | c3fb0dc15ba71da45ed854769a3d80410c8fc598 (patch) | |
| tree | d9afcc1020c367ca81021ebe099d900fefa49c02 /src | |
| parent | b82789f5196cc8d315f81cfe026cf20b5ae7c7d4 (diff) | |
Fix build without KF5Activities
Diffstat (limited to 'src')
| -rw-r--r-- | src/global.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/global.cpp b/src/global.cpp index 8babbbddc..9246eeb33 100644 --- a/src/global.cpp +++ b/src/global.cpp @@ -16,7 +16,7 @@ #include <KIO/ApplicationLauncherJob> #include <KService> #include <KWindowSystem> -#ifdef HAVE_KACTIVITIES +#if HAVE_KACTIVITIES #include <KActivities/Consumer> #endif @@ -143,7 +143,7 @@ bool Dolphin::attachToExistingInstance(const QList<QUrl> &inputUrls, QVector<QPair<QSharedPointer<OrgKdeDolphinMainWindowInterface>, QStringList>> Dolphin::dolphinGuiInstances(const QString &preferredService) { -#ifdef HAVE_KACTIVITIES +#if HAVE_KACTIVITIES static std::once_flag one_consumer; static KActivities::Consumer *consumer; std::call_once(one_consumer, []() { @@ -161,7 +161,7 @@ QVector<QPair<QSharedPointer<OrgKdeDolphinMainWindowInterface>, QStringList>> Do QSharedPointer<OrgKdeDolphinMainWindowInterface> interface( new OrgKdeDolphinMainWindowInterface(service, QStringLiteral("/dolphin/Dolphin_1"), QDBusConnection::sessionBus())); if (interface->isValid() && !interface->lastError().isValid()) { -#ifdef HAVE_KACTIVITIES +#if HAVE_KACTIVITIES const auto currentActivity = consumer->currentActivity(); if (currentActivity.isEmpty() || currentActivity == QStringLiteral("00000000-0000-0000-0000-000000000000") || interface->isOnActivity(consumer->currentActivity())) |
