From cd45603775aed474e13c299ead074db79a774cc4 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 23 Oct 2022 07:51:09 +0300 Subject: [PATCH] kdialog: assume QT_DBUS_LIB is defined Signed-off-by: Ivailo Monev --- kdialog/kdialog.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/kdialog/kdialog.cpp b/kdialog/kdialog.cpp index 3fbb5d37..0d3e0f7f 100644 --- a/kdialog/kdialog.cpp +++ b/kdialog/kdialog.cpp @@ -39,7 +39,9 @@ #include #include -#include +#include +#include +#include #include #include @@ -48,11 +50,6 @@ #include #endif -#ifdef QT_DBUS_LIB -#include -#include -#endif - #include using namespace std; @@ -98,7 +95,6 @@ bool WinIdEmbedder::eventFilter(QObject *o, QEvent *e) */ bool sendVisualNotification(const QString &text, const QString &title, const QString &icon, int timeout) { -#ifdef QT_DBUS_LIB const QString dbusServiceName = "org.freedesktop.Notifications"; const QString dbusInterfaceName = "org.freedesktop.Notifications"; const QString dbusPath = "/org/freedesktop/Notifications"; @@ -144,7 +140,6 @@ bool sendVisualNotification(const QString &text, const QString &title, const QSt } else { //kDebug() << "Unexpected reply type"; } -#endif return false; }