summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2014-08-13 22:10:51 +0200
committerTomasz Sterna <tomek@xiaoka.com>2014-08-13 22:10:51 +0200
commit164150a14ff497c6962318c7bc17e164c046082f (patch)
tree8cabf58c36ca879a92d0748bea72cd668af1bb9a
parentacd137e98a5bb4bbca2fa66b84cd680ab20dafcf (diff)
Recreate org.nemomobile.voicecall.VoiceCallManager QDBusInterface every initialize() attempt
Fixes #9
-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;