summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbusintegrator.cpp
diff options
context:
space:
mode:
authorIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>2023-08-23 14:29:01 +0200
committerIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>2023-08-28 22:03:03 +0200
commitd865e3ef1db53770f96f3800f75467edd7cdf3c7 (patch)
treedf9cedc5c1c10db7cb1d3ea623e057dccb774a4f /src/dbus/qdbusintegrator.cpp
parentf87d214000d77093c482336e92d41e39ccfae848 (diff)
QDBusServer: Remove private slot
Use QMetaObject::invokeMethod() to schedule call to QDBusConnectionPrivate::_q_newConnectioni() instead. This also gets rid of a by name signal/slot connection. Change-Id: I8725c4e3815c5580c5561bdddda0ab722b06346e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/dbus/qdbusintegrator.cpp')
-rw-r--r--src/dbus/qdbusintegrator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dbus/qdbusintegrator.cpp b/src/dbus/qdbusintegrator.cpp
index 497a6d3546..c8e7159b15 100644
--- a/src/dbus/qdbusintegrator.cpp
+++ b/src/dbus/qdbusintegrator.cpp
@@ -316,7 +316,8 @@ static void qDBusNewConnection(DBusServer *server, DBusConnection *connection, v
newConnection->setDispatchEnabled(false);
// this is a queued connection and will resume in the QDBusServer's thread
- emit serverConnection->newServerConnection(newConnection);
+ QMetaObject::invokeMethod(serverConnection, &QDBusConnectionPrivate::_q_newConnection,
+ Qt::QueuedConnection, newConnection);
// we've disabled dispatching of events, so now we post an event to the
// QDBusServer's thread in order to enable it after the