summaryrefslogtreecommitdiff
path: root/core/pim/today/today.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/today/today.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp18
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
@@ -421,14 +421,22 @@ void Today::getTodo() {
TodoField->setText(tr(output));
}
+
+void Today::startAddressbook() {
+ QCopEnvelope e("QPE/System", "execute(QString)");
+ e << QString("addressbook");
+}
+
+extern QPEApplication *todayApp;
+
/*
* launch addressbook (personal card)
*/
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()");
}
@@ -443,10 +451,6 @@ void Today::startDatebook() {
/*
* starts the edit dialog as known from datebook
*/
-
-
-extern QPEApplication *todayApp;
-
void Today::editEvent(const Event &e) {
startDatebook();