[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [sflphone-kde/abstractmodels] src: [ #25290 ] Add SYNC wait for daemon
From:       Emmanuel Lepage Vallee <emmanuel.lepage () savoirfairelinux ! com>
Date:       2013-05-31 21:28:01
Message-ID: 20130531212801.19475A6067 () git ! kde ! org
[Download RAW message or body]

Git commit 7753d1d54e5c466095a41ae779926f5b7c0b8ca4 by Emmanuel Lepage Vallee.
Committed on 31/05/2013 at 23:27.
Pushed by lepagevalleeemmanuel into branch 'abstractmodels'.

[ #25290 ] Add SYNC wait for daemon

M  +3    -1    src/sflphoneapplication.cpp

http://commits.kde.org/sflphone-kde/7753d1d54e5c466095a41ae779926f5b7c0b8ca4

diff --git a/src/sflphoneapplication.cpp b/src/sflphoneapplication.cpp
index 5b75b5f..414e2a8 100644
--- a/src/sflphoneapplication.cpp
+++ b/src/sflphoneapplication.cpp
@@ -55,7 +55,9 @@ SFLPhoneApplication::SFLPhoneApplication()
 #endif
 {
    InstanceInterface& instance = InstanceInterfaceSingleton::getInstance();
-   instance.Register(getpid(), APP_NAME);
+   QDBusPendingReply<QString> reply = instance.Register(getpid(), APP_NAME);
+   reply.waitForFinished();
+
    // Start remaining initialisation
    initializePaths();
    initializeMainWindow();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic