Revert "fix AT_SPI_BUS_ADDRESS actually working"

This reverts commit be09628e15.
because db346e711c 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 <volker.hilsheimer@qt.io>
This commit is contained in:
Samuel Thibault 2023-04-07 19:29:59 +02:00 committed by Volker Hilsheimer
parent bf0f1fa7d1
commit 9a35bd02dc

View File

@ -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;
}