author | harlekin <harlekin> | 2002-04-24 21:01:23 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-04-24 21:01:23 (UTC) |
commit | b15d6ac87e3579992234d4903a34f367d6fa58b4 (patch) (side-by-side diff) | |
tree | 3160d16b2db8f62089a2e1ce0382735914aa405e /core | |
parent | feaa245515b0746f6f70f590411c38e0a54c88ee (diff) | |
download | opie-b15d6ac87e3579992234d4903a34f367d6fa58b4.zip opie-b15d6ac87e3579992234d4903a34f367d6fa58b4.tar.gz opie-b15d6ac87e3579992234d4903a34f367d6fa58b4.tar.bz2 |
fix
-rw-r--r-- | core/pim/today/today.cpp | 34 |
1 files changed, 19 insertions, 15 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 @@ -43,4 +43,5 @@ #include <qtl.h> + //#include <iostream.h> #include <unistd.h> @@ -128,18 +129,19 @@ void Today::setOwnerField(QString &message) { */ void Today::autoStart() { - // Config cfg("today"); - //cfg.setGroup("Autostart"); - //AUTOSTART = cfg.readNumEntry("autostart",1); - - if (AUTOSTART) { - QCopEnvelope e("QPE/System", "autoStart(QString, QString, QString)"); - e << QString("add"); - e << QString("today"); - e << AUTOSTART_TIMER; - } else { - QCopEnvelope e("QPE/System", "autoStart(QString, QString)"); - e << QString("remove"); - e << QString("today"); - } + 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"); + } } @@ -262,4 +264,5 @@ void Today::startConfig() { int autostartdelay = conf->SpinBoxTime->value(); + cfg.writeEntry("maxlinestask",maxlinestask); cfg.writeEntry("maxcharclip", maxcharclip); @@ -276,4 +279,5 @@ void Today::startConfig() { NEW_START=1; draw(); + AUTOSTART=autostart; autoStart(); } @@ -454,5 +458,5 @@ void Today::startMail() { //Right now start both, maybe decide which to rum via config file .. QCopEnvelope f("QPE/System", "execute(QString)"); - e << QString("qtmail"); + f << QString("qtmail"); } |