Revert "fix AT_SPI_BUS_ADDRESS actually working"
This reverts commitbe09628e15
. becausedb346e711c
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:
parent
bf0f1fa7d1
commit
9a35bd02dc
@ -38,15 +38,8 @@ DBusConnection::DBusConnection(QObject *parent)
|
|||||||
// If the bus is explicitly set via env var it overrides everything else.
|
// If the bus is explicitly set via env var it overrides everything else.
|
||||||
QByteArray addressEnv = qgetenv("AT_SPI_BUS_ADDRESS");
|
QByteArray addressEnv = qgetenv("AT_SPI_BUS_ADDRESS");
|
||||||
if (!addressEnv.isEmpty()) {
|
if (!addressEnv.isEmpty()) {
|
||||||
// Only connect on next loop run, connections to our enabled signal are
|
m_enabled = true;
|
||||||
// only established after the ctor returns.
|
connectA11yBus(QString::fromLocal8Bit(addressEnv));
|
||||||
QMetaObject::invokeMethod(
|
|
||||||
this,
|
|
||||||
[this, addressEnv] {
|
|
||||||
m_enabled = true;
|
|
||||||
connectA11yBus(QString::fromLocal8Bit(addressEnv));
|
|
||||||
},
|
|
||||||
Qt::QueuedConnection);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user