Avoid race on keyboard layout registering
If a service name exists, the relevant object at that path always should, otherwise it's technically racey due to DBus running in another thread.
This commit is contained in:
parent
523ad8e25c
commit
b918361acf
1 changed files with 1 additions and 1 deletions
|
@ -188,8 +188,8 @@ KeyboardLayoutDBusInterface::KeyboardLayoutDBusInterface(Xkb *xkb, const KConfig
|
|||
qDBusRegisterMetaType<LayoutNames>();
|
||||
qDBusRegisterMetaType<QVector<LayoutNames>>();
|
||||
|
||||
QDBusConnection::sessionBus().registerService(s_keyboardService);
|
||||
QDBusConnection::sessionBus().registerObject(s_keyboardObject, this, QDBusConnection::ExportAllSlots | QDBusConnection::ExportAllSignals);
|
||||
QDBusConnection::sessionBus().registerService(s_keyboardService);
|
||||
}
|
||||
|
||||
KeyboardLayoutDBusInterface::~KeyboardLayoutDBusInterface()
|
||||
|
|
Loading…
Reference in a new issue