Ref T173, unregister a DBus service before connecting

* In case there is a crash and we reconnect, the old service might be still registered
* "private slots" -> "private"
This commit is contained in:
Klaus Basan
2017-10-14 02:40:39 +02:00
parent 5dd83a16c4
commit 807ceb16ac
2 changed files with 6 additions and 5 deletions

View File

@@ -145,9 +145,8 @@ namespace BlackMisc
return QDBusConnection::ExportAdaptors | QDBusConnection::ExportAllSignals | QDBusConnection::ExportAllSlots;
}
private slots:
//! Called when a new DBus client has connected in P2P mode
bool ps_registerObjectsWithP2PConnection(QDBusConnection connection);
bool registerObjectsWithP2PConnection(QDBusConnection connection);
};
}