diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2014-08-13 22:10:51 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2014-08-13 22:10:51 +0200 |
| commit | 164150a14ff497c6962318c7bc17e164c046082f (patch) | |
| tree | 8cabf58c36ca879a92d0748bea72cd668af1bb9a /daemon | |
| parent | acd137e98a5bb4bbca2fa66b84cd680ab20dafcf (diff) | |
Recreate org.nemomobile.voicecall.VoiceCallManager QDBusInterface every initialize() attempt
Fixes #9
Diffstat (limited to 'daemon')
| -rw-r--r-- | daemon/voicecallmanager.cpp | 14 |
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; |
