Skip to content

Commit

Permalink
FdoSecrets: fix service not registered if start with the plugin enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetf committed Dec 21, 2019
1 parent fff102d commit 3574229
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fdosecrets/objects/Service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ namespace FdoSecrets
, m_insdieEnsureDefaultAlias(false)
, m_serviceWatcher(nullptr)
{
registerWithPath(QStringLiteral(DBUS_PATH_SECRETS), new ServiceAdaptor(this));
}

Service::~Service()
Expand All @@ -64,6 +63,8 @@ namespace FdoSecrets
return false;
}

registerWithPath(QStringLiteral(DBUS_PATH_SECRETS), new ServiceAdaptor(this));

// Connect to service unregistered signal
m_serviceWatcher.reset(new QDBusServiceWatcher());
connect(m_serviceWatcher.data(),
Expand Down

0 comments on commit 3574229

Please sign in to comment.