From 1ae4938da356d396e633155022ce6acf16baebf8 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 23 Aug 2020 03:20:53 +0200 Subject: [PATCH] Register D-Bus metatype for QImage if system has D-Bus --- src/core/metatypes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/metatypes.cpp b/src/core/metatypes.cpp index 3cd05a7f4..a2ba4c373 100644 --- a/src/core/metatypes.cpp +++ b/src/core/metatypes.cpp @@ -42,6 +42,7 @@ #include #ifdef HAVE_DBUS # include +# include #endif #include "song.h" @@ -62,6 +63,7 @@ #ifdef HAVE_DBUS # include "mpris2.h" +# include "osd/osddbus.h" # include "dbus/metatypes.h" #endif @@ -115,6 +117,7 @@ void RegisterMetaTypes() { qRegisterMetaTypeStreamOperators("Equalizer::Params"); #ifdef HAVE_DBUS qDBusRegisterMetaType>(); + qDBusRegisterMetaType(); qDBusRegisterMetaType(); qDBusRegisterMetaType(); qDBusRegisterMetaType(); @@ -122,9 +125,6 @@ void RegisterMetaTypes() { qDBusRegisterMetaType(); qDBusRegisterMetaType(); qDBusRegisterMetaType(); -#ifdef HAVE_X11 - qDBusRegisterMetaType(); -#endif #endif qRegisterMetaType("InternetSearchView::ResultList");