From 9a35bd02dc7b3474d958b7b85d58b5b50f7cb787 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 7 Apr 2023 19:29:59 +0200 Subject: [PATCH] Revert "fix AT_SPI_BUS_ADDRESS actually working" This reverts commit be09628e151f26f602024bae6a957ffb27ac872d. because db346e711c9af50566c234cfc21199680e6cb499 avoids the issue entirely by calling this code after connecting the event. Task-number: QTBUG-43674 Pick-to: 6.5 Change-Id: I72f5b161208aa3691e194f4ba7782d288602bbf3 Reviewed-by: Volker Hilsheimer --- src/gui/accessible/linux/dbusconnection.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/gui/accessible/linux/dbusconnection.cpp b/src/gui/accessible/linux/dbusconnection.cpp index 9105768fcf..b4a8643474 100644 --- a/src/gui/accessible/linux/dbusconnection.cpp +++ b/src/gui/accessible/linux/dbusconnection.cpp @@ -38,15 +38,8 @@ DBusConnection::DBusConnection(QObject *parent) // If the bus is explicitly set via env var it overrides everything else. QByteArray addressEnv = qgetenv("AT_SPI_BUS_ADDRESS"); if (!addressEnv.isEmpty()) { - // Only connect on next loop run, connections to our enabled signal are - // only established after the ctor returns. - QMetaObject::invokeMethod( - this, - [this, addressEnv] { - m_enabled = true; - connectA11yBus(QString::fromLocal8Bit(addressEnv)); - }, - Qt::QueuedConnection); + m_enabled = true; + connectA11yBus(QString::fromLocal8Bit(addressEnv)); return; }