-rw-r--r-- | core/pim/today/today.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 9e9d31f..ad1ec90 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp @@ -423,2 +423,10 @@ void Today::getTodo() { + +void Today::startAddressbook() { + QCopEnvelope e("QPE/System", "execute(QString)"); + e << QString("addressbook"); +} + +extern QPEApplication *todayApp; + /* @@ -427,6 +435,6 @@ void Today::getTodo() { void Today::editCard() { - QCopEnvelope w("QPE/System", "execute(QString)"); - w << QString("addressbook"); - // while( !QCopChannel::isRegistered("QPE/Addressbook")) + startAddressbook(); + + while( !QCopChannel::isRegistered("QPE/Addressbook")) todayApp->processEvents(); QCopEnvelope v("QPE/Addressbook", "editPersonalAndClose()"); @@ -445,6 +453,2 @@ void Today::startDatebook() { */ - - -extern QPEApplication *todayApp; - void Today::editEvent(const Event &e) { |