From d7c563f849316c7a742769e88136058afb69a2d9 Mon Sep 17 00:00:00 2001 From: harlekin Date: Tue, 11 Jun 2002 23:33:52 +0000 Subject: click on vcard label launches not the input --- (limited to 'core/pim') 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(); 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 @@ -46,6 +46,7 @@ class Today : public TodayBase { void startConfig(); void startTodo(); void startDatebook(); + void startAddressbook(); void startMail(); void editCard(); void draw(); -- cgit v0.9.0.2