summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/today.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 87a7970..0ab7a2a 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -41,8 +41,9 @@
//#include <qfileinfo.h>
#include <qlayout.h>
#include <qtl.h>
+
//#include <iostream.h>
#include <unistd.h>
#include <stdlib.h>
@@ -126,18 +127,19 @@ void Today::setOwnerField(QString &message) {
* Autostart, uses the new (opie only) autostart method in the launcher code.
* If registered against that today ist started on each resume.
*/
void Today::autoStart() {
- // Config cfg("today");
- //cfg.setGroup("Autostart");
- //AUTOSTART = cfg.readNumEntry("autostart",1);
-
+ Config cfg("today");
+ cfg.setGroup("Autostart");
+ int AUTOSTART = cfg.readNumEntry("autostart",1);
+ qDebug(QString("%1").arg(AUTOSTART));
if (AUTOSTART) {
QCopEnvelope e("QPE/System", "autoStart(QString, QString, QString)");
e << QString("add");
e << QString("today");
e << AUTOSTART_TIMER;
} else {
+ qDebug("Nun in else bei autostart");
QCopEnvelope e("QPE/System", "autoStart(QString, QString)");
e << QString("remove");
e << QString("today");
}
@@ -260,8 +262,9 @@ void Today::startConfig() {
int onlylater = conf->CheckBox3->isChecked();
int autostart = conf->CheckBoxAuto->isChecked();
int autostartdelay = conf->SpinBoxTime->value();
+
cfg.writeEntry("maxlinestask",maxlinestask);
cfg.writeEntry("maxcharclip", maxcharclip);
cfg.writeEntry("maxlinesmeet",maxmeet);
cfg.writeEntry("showlocation",location);
@@ -274,8 +277,9 @@ void Today::startConfig() {
// sync it to "disk"
cfg.write();
NEW_START=1;
draw();
+ AUTOSTART=autostart;
autoStart();
}
@@ -452,9 +456,9 @@ void Today::startMail() {
QCopEnvelope e("QPE/System", "execute(QString)");
e << QString("opiemail");
//Right now start both, maybe decide which to rum via config file ..
QCopEnvelope f("QPE/System", "execute(QString)");
- e << QString("qtmail");
+ f << QString("qtmail");
}
Today::~Today() {