From: Pino Toscano Date: Sat, 24 Aug 2024 15:34:46 +0000 (+0200) Subject: [PATCH] Consistently use WITH_QTDBUS instead of USE_DBUS X-Git-Tag: archive/raspbian/6.6.0-1+rpi1~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=10fae68842c8bb146b3364a084fa3a01f34564b1;p=kf6-kio.git [PATCH] Consistently use WITH_QTDBUS instead of USE_DBUS USE_DBUS still uses an hardcoded list of architectures, whereas there is already WITH_QTDBUS defined in case the D-Bus support is available. Followup of commit 6bdab62068c89b61796246508813ae63aa3ef872. Gbp-Pq: Name upstream_Consistently-use-WITH_QTDBUS-instead-of-USE_DBUS.patch --- diff --git a/src/gui/openfilemanagerwindowjob.cpp b/src/gui/openfilemanagerwindowjob.cpp index 974f92e..75a9a63 100644 --- a/src/gui/openfilemanagerwindowjob.cpp +++ b/src/gui/openfilemanagerwindowjob.cpp @@ -45,7 +45,7 @@ public: ~OpenFileManagerWindowJobPrivate() = default; -#if USE_DBUS +#ifdef WITH_QTDBUS void createDBusStrategy() { strategy = std::make_unique(q); diff --git a/src/gui/openfilemanagerwindowjob_p.h b/src/gui/openfilemanagerwindowjob_p.h index 63ddcac..22ad9fd 100644 --- a/src/gui/openfilemanagerwindowjob_p.h +++ b/src/gui/openfilemanagerwindowjob_p.h @@ -8,12 +8,6 @@ #ifndef OPENFILEMANAGERWINDOWJOB_P_H #define OPENFILEMANAGERWINDOWJOB_P_H -#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) -#define USE_DBUS 1 -#else -#define USE_DBUS 0 -#endif - #include namespace KIO @@ -43,7 +37,7 @@ protected: OpenFileManagerWindowJob *m_job; }; -#if USE_DBUS +#ifdef WITH_QTDBUS class OpenFileManagerWindowDBusStrategy : public AbstractOpenFileManagerWindowStrategy { public: