From a5a375d7d981ee4b1ce875845711538fd20379d9 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Sun, 16 Apr 2023 10:06:13 +0200 Subject: [PATCH] Remove qRegisterMetaTypeStreamOperators call for Qt6 builds --- plugins/sendnotifications/notificationslistener.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/sendnotifications/notificationslistener.cpp b/plugins/sendnotifications/notificationslistener.cpp index 8b5894d3d..2370f00c1 100644 --- a/plugins/sendnotifications/notificationslistener.cpp +++ b/plugins/sendnotifications/notificationslistener.cpp @@ -35,7 +35,9 @@ NotificationsListener::NotificationsListener(KdeConnectPlugin *aPlugin) : QObject(aPlugin) , m_plugin(aPlugin) { +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) qRegisterMetaTypeStreamOperators("NotifyingApplication"); +#endif GError *error = nullptr; m_gdbusConnection = g_bus_get_sync(G_BUS_TYPE_SESSION, nullptr, &error);