projects
/
jenirok
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved boot script from init.d to upstart. Fixed some problems in call listener.
[jenirok]
/
src
/
common
/
contactmanager.cpp
diff --git
a/src/common/contactmanager.cpp
b/src/common/contactmanager.cpp
index
1289f1a
..
0a49a7c
100644
(file)
--- a/
src/common/contactmanager.cpp
+++ b/
src/common/contactmanager.cpp
@@
-112,9
+112,14
@@
bool ContactManager::load()
return true;
}
return true;
}
- GError* error = NULL;
+ qDebug() << "Loading addressbook";
+
+ GError *error;
+ error = 0;
book_ = e_book_new_system_addressbook(&error);
book_ = e_book_new_system_addressbook(&error);
+ qDebug() << "Loaded almost";
+
if (!book_)
{
qDebug() << "Couldn't open addressbook: %s" << error->message;
if (!book_)
{
qDebug() << "Couldn't open addressbook: %s" << error->message;
@@
-122,6
+127,8
@@
bool ContactManager::load()
return false;
}
return false;
}
+ qDebug() << "Addressbook loaded";
+
/* Open connection to the address book */
if (!e_book_open(book_, FALSE, &error))
{
/* Open connection to the address book */
if (!e_book_open(book_, FALSE, &error))
{
@@
-130,6
+137,8
@@
bool ContactManager::load()
return false;
}
return false;
}
+ qDebug() << "Addressbook opened";
+
return true;
}
return true;
}