summaryrefslogtreecommitdiff
path: root/daemon/voicecallmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/voicecallmanager.cpp')
-rw-r--r--daemon/voicecallmanager.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/daemon/voicecallmanager.cpp b/daemon/voicecallmanager.cpp
index 419ecff..ac03b51 100644
--- a/daemon/voicecallmanager.cpp
+++ b/daemon/voicecallmanager.cpp
@@ -32,13 +32,6 @@ public:
VoiceCallManager::VoiceCallManager(Settings *settings, QObject *parent)
: QObject(parent), d_ptr(new VoiceCallManagerPrivate(this)), settings(settings)
{
- Q_D(VoiceCallManager);
- d->interface = new QDBusInterface("org.nemomobile.voicecall",
- "/",
- "org.nemomobile.voicecall.VoiceCallManager",
- QDBusConnection::sessionBus(),
- this);
-
this->initialize();
}
@@ -53,6 +46,13 @@ void VoiceCallManager::initialize(bool notifyError)
Q_D(VoiceCallManager);
bool success = false;
+ delete d->interface;
+ d->interface = new QDBusInterface("org.nemomobile.voicecall",
+ "/",
+ "org.nemomobile.voicecall.VoiceCallManager",
+ QDBusConnection::sessionBus(),
+ this);
+
if(d->interface->isValid())
{
success = true;