From b4b4837b14764eb1f575c017b6d4838b9f7d9917 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 2e005fdf1..6efc3a491 100644 --- a/plugins/sendnotifications/notificationslistener.cpp +++ b/plugins/sendnotifications/notificationslistener.cpp @@ -32,7 +32,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);