Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Jenirok
Summary Tracker SCM Files
authoreshe <jessehakanen@gmail.com>
Mon, 5 Jul 2010 08:39:10 +0000 (09:39 +0100)
committereshe <jessehakanen@gmail.com>
Mon, 5 Jul 2010 08:39:10 +0000 (09:39 +0100)
src/daemon/calllistener.cpp

index debb367..78d5737 100644 (file)
@@ -254,11 +254,17 @@ void CallListener::showResult(QString const& text)
 
 void CallListener::incomingCall(QDBusObjectPath path, QString number)
 {
+    if(number.isEmpty())
+    {
+        qDebug() << "Unknown caller without number";
+        return;
+    }
+
     ContactManager cm;
 
     if(!cm.numberExists(number))
     {
-        qDebug() << "Number doesn't exist";
+        qDebug() << "Number doesn't exist: " << number;
 
         systemBus_.connect(CALL_SERVICE_NAME,
                            path.path(),
@@ -271,7 +277,7 @@ void CallListener::incomingCall(QDBusObjectPath path, QString number)
     }
     else
     {
-        qDebug() << "Number exists";
+        qDebug() << "Number exists: " << number;
     }
 }
 

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment