Ref T192, DBus utility functions, Service name empty for P2P

This commit is contained in:
Klaus Basan
2017-11-19 18:49:14 +01:00
parent c3f3a30b35
commit 9cb06c4d56
3 changed files with 26 additions and 1 deletions

View File

@@ -361,7 +361,7 @@ namespace BlackCore
}
else
{
const QString name("BlackBoxRuntime");
const QString name(CDBusServer::p2pConnectionName() + " " + address);
QDBusConnection::disconnectFromPeer(name);
m_dbusConnection = QDBusConnection::connectToPeer(address, name);
}