author | harlekin <harlekin> | 2002-02-17 19:21:45 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-02-17 19:21:45 (UTC) |
commit | 39c6f8a9e734f200de4b67f55e159a6ccce38940 (patch) (unidiff) | |
tree | 3574ddf0d7b99deca02d4ca8c1a71e8ef72cf99f | |
parent | 687d0c760684392c89f4e99fbf803c8f4d67b2b1 (diff) | |
download | opie-39c6f8a9e734f200de4b67f55e159a6ccce38940.zip opie-39c6f8a9e734f200de4b67f55e159a6ccce38940.tar.gz opie-39c6f8a9e734f200de4b67f55e159a6ccce38940.tar.bz2 |
fixed stupid bug
-rw-r--r-- | core/pim/today/today.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 0f6e598..7a2d0c9 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp | |||
@@ -193,17 +193,17 @@ void Today::getDates() | |||
193 | + "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) ) | 193 | + "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) ) |
194 | + "<BR>"; | 194 | + "<BR>"; |
195 | // include possible note or not | 195 | // include possible note or not |
196 | if (SHOW_NOTES == 1) | 196 | if (SHOW_NOTES == 1) |
197 | { | 197 | { |
198 | msg += " <i>note</i>:" +((*it).notes()).mid(0, MAX_CHAR_CLIP) + "<br>"; | 198 | msg += " <i>note</i>:" +((*it).notes()).mid(0, MAX_CHAR_CLIP) + "<br>"; |
199 | } | 199 | } |
200 | } | 200 | } |
201 | else if ((time.toString() <= TimeString::dateString((*it).event().end())) && ONLY_LATER ) | 201 | else if ((time.toString() <= TimeString::dateString((*it).event().end())) ) |
202 | { | 202 | { |
203 | msg += "<B>" + (*it).description() + "</B>"; | 203 | msg += "<B>" + (*it).description() + "</B>"; |
204 | // include location or not | 204 | // include location or not |
205 | if (SHOW_LOCATION == 1) | 205 | if (SHOW_LOCATION == 1) |
206 | { | 206 | { |
207 | msg+= "<BR>" + (*it).location(); | 207 | msg+= "<BR>" + (*it).location(); |
208 | } | 208 | } |
209 | msg += "<BR>" | 209 | msg += "<BR>" |
@@ -214,22 +214,21 @@ void Today::getDates() | |||
214 | + "<BR>"; | 214 | + "<BR>"; |
215 | // include possible note or not | 215 | // include possible note or not |
216 | if (SHOW_NOTES == 1) | 216 | if (SHOW_NOTES == 1) |
217 | { | 217 | { |
218 | msg += " <i>note</i>:" +((*it).notes()).mid(0, MAX_CHAR_CLIP) + "<br>"; | 218 | msg += " <i>note</i>:" +((*it).notes()).mid(0, MAX_CHAR_CLIP) + "<br>"; |
219 | } | 219 | } |
220 | } | 220 | } |
221 | } | 221 | } |
222 | |||
223 | if (msg.isEmpty()) | ||
224 | { | ||
225 | msg = "No more appointments today"; | ||
226 | } | ||
227 | } | 222 | } |
223 | if (msg.isEmpty()) | ||
224 | { | ||
225 | msg = "No more appointments today"; | ||
226 | } | ||
228 | DatesField->setText(msg); | 227 | DatesField->setText(msg); |
229 | } | 228 | } |
230 | } | 229 | } |
231 | 230 | ||
232 | /* | 231 | /* |
233 | * Parse in the todolist.xml | 232 | * Parse in the todolist.xml |
234 | * | 233 | * |
235 | */ | 234 | */ |