Commit 3b3b8c3d authored by Antonio Rojas's avatar Antonio Rojas Committed by Harald Sitter

Fix connecting to PulseAudio with Qt 5.12 beta 3

QAbstractEventDispatcher::instance()->metaObject()->className() now returns "QXcbGlibEventDispatcher", so the glib event loop test fails

Differential Revision:
parent 84a4541d
......@@ -591,7 +591,8 @@ void Context::connectToDaemon()
// We require a glib event loop
if (!QByteArray(QAbstractEventDispatcher::instance()->metaObject()->className()).contains("EventDispatcherGlib")) {
if (!QByteArray(QAbstractEventDispatcher::instance()->metaObject()->className()).contains("EventDispatcherGlib") &&
!QByteArray(QAbstractEventDispatcher::instance()->metaObject()->className()).contains("GlibEventDispatcher")) {
qCWarning(PLASMAPA) << "Disabling PulseAudio integration for lack of GLib event loop";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment