-rw-r--r-- | core/pim/today/main.cpp | 3 | ||||
-rw-r--r-- | core/pim/today/today.cpp | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/core/pim/today/main.cpp b/core/pim/today/main.cpp index 552db7c..72c0a2e 100644 --- a/core/pim/today/main.cpp +++ b/core/pim/today/main.cpp | |||
@@ -20,9 +20,12 @@ | |||
20 | #include "today.h" | 20 | #include "today.h" |
21 | #include <qpe/qpeapplication.h> | 21 | #include <qpe/qpeapplication.h> |
22 | 22 | ||
23 | QPEApplication *todayApp; | ||
24 | |||
23 | int main( int argc, char ** argv ) | 25 | int main( int argc, char ** argv ) |
24 | { | 26 | { |
25 | QPEApplication a(argc, argv); | 27 | QPEApplication a(argc, argv); |
28 | todayApp=&a; | ||
26 | 29 | ||
27 | Today t; | 30 | Today t; |
28 | 31 | ||
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index aef0a9b..66a4152 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <qpe/resource.h> | 26 | #include <qpe/resource.h> |
27 | #include <qpe/contact.h> | 27 | #include <qpe/contact.h> |
28 | #include <qpe/global.h> | 28 | #include <qpe/global.h> |
29 | #include <qpe/qpeapplication.h> | ||
29 | 30 | ||
30 | #include <qdir.h> | 31 | #include <qdir.h> |
31 | #include <qfile.h> | 32 | #include <qfile.h> |
@@ -406,15 +407,15 @@ void Today::startDatebook() { | |||
406 | /* | 407 | /* |
407 | * starts the edit dialog as known from datebook | 408 | * starts the edit dialog as known from datebook |
408 | */ | 409 | */ |
410 | |||
411 | extern QPEApplication *todayApp; | ||
412 | |||
409 | void Today::editEvent(const Event &e) { | 413 | void Today::editEvent(const Event &e) { |
410 | startDatebook(); | 414 | startDatebook(); |
411 | 415 | ||
412 | //Dissabled for now as uid's not working properly | 416 | while(!QCopChannel::isRegistered("QPE/Datebook")) todayApp->processEvents(); |
413 | /* | ||
414 | while(!QCopChannel::isRegistered("QPE/Datebook")) sleep(1); | ||
415 | QCopEnvelope env("QPE/Datebook", "editEvent(int)"); | 417 | QCopEnvelope env("QPE/Datebook", "editEvent(int)"); |
416 | env << e.uid(); | 418 | env << e.uid(); |
417 | */ | ||
418 | } | 419 | } |
419 | 420 | ||
420 | /* | 421 | /* |