summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp18
-rw-r--r--core/pim/today/today.h1
2 files changed, 12 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
@@ -420,16 +420,24 @@ 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()");
}
/*
@@ -442,12 +450,8 @@ void Today::startDatebook() {
/*
* starts the edit dialog as known from datebook
*/
-
-
-extern QPEApplication *todayApp;
-
void Today::editEvent(const Event &e) {
startDatebook();
while(!QCopChannel::isRegistered("QPE/Datebook")) todayApp->processEvents();
diff --git a/core/pim/today/today.h b/core/pim/today/today.h
index 54f31cc..f28c029 100644
--- a/core/pim/today/today.h
+++ b/core/pim/today/today.h
@@ -45,8 +45,9 @@ class Today : public TodayBase {
private slots:
void startConfig();
void startTodo();
void startDatebook();
+ void startAddressbook();
void startMail();
void editCard();
void draw();
void editEvent(const Event &e);