Moved boot script from init.d to upstart. Fixed some problems in call listener.
[jenirok] / src / common / contactmanager.cpp
index 1289f1a..0a49a7c 100644 (file)
@@ -112,9 +112,14 @@ bool ContactManager::load()
         return true;
     }
 
-    GError* error = NULL;
+    qDebug() << "Loading addressbook";
+
+    GError *error;
+    error = 0;
     book_ = e_book_new_system_addressbook(&error);
 
+    qDebug() << "Loaded almost";
+
     if (!book_)
     {
         qDebug() << "Couldn't open addressbook: %s" <<  error->message;
@@ -122,6 +127,8 @@ bool ContactManager::load()
         return false;
     }
 
+    qDebug() << "Addressbook loaded";
+
     /* Open connection to the address book */
     if (!e_book_open(book_, FALSE, &error))
     {
@@ -130,6 +137,8 @@ bool ContactManager::load()
         return false;
     }
 
+    qDebug() << "Addressbook opened";
+
     return true;
 
 }