Commit 92a2da05 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Don't unregister plugins from DBus in contructor

parent 89987eb0
Pipeline #3104 failed with stage
in 8 minutes and 49 seconds
......@@ -58,11 +58,6 @@ ContactsPlugin::ContactsPlugin(QObject* parent, const QVariantList& args) :
qCDebug(KDECONNECT_PLUGIN_CONTACTS) << "Contacts constructor for device " << device()->name();
}
ContactsPlugin::~ContactsPlugin() {
QDBusConnection::sessionBus().unregisterObject(dbusPath(), QDBusConnection::UnregisterTree);
// qCDebug(KDECONNECT_PLUGIN_CONTACTS) << "Contacts plugin destructor for device" << device()->name();
}
bool ContactsPlugin::receivePacket(const NetworkPacket& np) {
//qCDebug(KDECONNECT_PLUGIN_CONTACTS) << "Packet Received for device " << device()->name();
//qCDebug(KDECONNECT_PLUGIN_CONTACTS) << np.body();
......
......@@ -91,7 +91,6 @@ class Q_DECL_EXPORT ContactsPlugin : public KdeConnectPlugin {
public:
explicit ContactsPlugin(QObject* parent, const QVariantList& args);
~ContactsPlugin () override;
bool receivePacket(const NetworkPacket& np) override;
void connected() override {
......
......@@ -60,7 +60,6 @@ SftpPlugin::SftpPlugin(QObject* parent, const QVariantList& args)
SftpPlugin::~SftpPlugin()
{
QDBusConnection::sessionBus().unregisterObject(dbusPath(), QDBusConnection::UnregisterTree);
removeFromDolphin();
unmount();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment