-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 | |||
@@ -44,2 +44,3 @@ | |||
44 | 44 | ||
45 | |||
45 | //#include <iostream.h> | 46 | //#include <iostream.h> |
@@ -129,16 +130,17 @@ void Today::setOwnerField(QString &message) { | |||
129 | void Today::autoStart() { | 130 | void Today::autoStart() { |
130 | // Config cfg("today"); | 131 | Config cfg("today"); |
131 | //cfg.setGroup("Autostart"); | 132 | cfg.setGroup("Autostart"); |
132 | //AUTOSTART = cfg.readNumEntry("autostart",1); | 133 | int AUTOSTART = cfg.readNumEntry("autostart",1); |
133 | 134 | qDebug(QString("%1").arg(AUTOSTART)); | |
134 | if (AUTOSTART) { | 135 | if (AUTOSTART) { |
135 | QCopEnvelope e("QPE/System", "autoStart(QString, QString, QString)"); | 136 | QCopEnvelope e("QPE/System", "autoStart(QString, QString, QString)"); |
136 | e << QString("add"); | 137 | e << QString("add"); |
137 | e << QString("today"); | 138 | e << QString("today"); |
138 | e << AUTOSTART_TIMER; | 139 | e << AUTOSTART_TIMER; |
139 | } else { | 140 | } else { |
140 | QCopEnvelope e("QPE/System", "autoStart(QString, QString)"); | 141 | qDebug("Nun in else bei autostart"); |
141 | e << QString("remove"); | 142 | QCopEnvelope e("QPE/System", "autoStart(QString, QString)"); |
142 | e << QString("today"); | 143 | e << QString("remove"); |
143 | } | 144 | e << QString("today"); |
145 | } | ||
144 | } | 146 | } |
@@ -263,2 +265,3 @@ void Today::startConfig() { | |||
263 | 265 | ||
266 | |||
264 | cfg.writeEntry("maxlinestask",maxlinestask); | 267 | cfg.writeEntry("maxlinestask",maxlinestask); |
@@ -277,2 +280,3 @@ void Today::startConfig() { | |||
277 | draw(); | 280 | draw(); |
281 | AUTOSTART=autostart; | ||
278 | autoStart(); | 282 | autoStart(); |
@@ -455,3 +459,3 @@ void Today::startMail() { | |||
455 | QCopEnvelope f("QPE/System", "execute(QString)"); | 459 | QCopEnvelope f("QPE/System", "execute(QString)"); |
456 | e << QString("qtmail"); | 460 | f << QString("qtmail"); |
457 | } | 461 | } |