summaryrefslogtreecommitdiffabout
path: root/korganizer/koagendaitem.cpp
authorzautrix <zautrix>2005-01-31 18:42:30 (UTC)
committer zautrix <zautrix>2005-01-31 18:42:30 (UTC)
commit949ead6797c44f632a4addd2e6aae1fb88f37816 (patch) (side-by-side diff)
tree4c2d4020333d94d8c03153f8e1e9ac5a33801c68 /korganizer/koagendaitem.cpp
parent8e627854bec00289be27915b81458cf22bbb000f (diff)
downloadkdepimpi-949ead6797c44f632a4addd2e6aae1fb88f37816.zip
kdepimpi-949ead6797c44f632a4addd2e6aae1fb88f37816.tar.gz
kdepimpi-949ead6797c44f632a4addd2e6aae1fb88f37816.tar.bz2
fix
Diffstat (limited to 'korganizer/koagendaitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koagendaitem.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp
index a05c60e..5f9ed92 100644
--- a/korganizer/koagendaitem.cpp
+++ b/korganizer/koagendaitem.cpp
@@ -518,13 +518,15 @@ void KOAgendaItem::computeText()
}
else if ( mIncidence->type() == "Todo" ) {
if (mIncidence->hasStartDate())
- tipText += "\n"+i18n("Start: ")+ (static_cast<Todo*>(mIncidence))->dtStartStr();
- tipText += "\n"+i18n("Due: ")+ (static_cast<Todo*>(mIncidence))->dtDueStr();
+ tipText += "\n"+i18n("Start: ")+ (static_cast<Todo*>(mIncidence))->dtStartStr();
+ if (((Todo*)mIncidence)->hasDueDate())
+ tipText += "\n"+i18n("Due: ")+ (static_cast<Todo*>(mIncidence))->dtDueStr();
}
} else if ( mIncidence->type() == "Todo" ) {
if (mIncidence->hasStartDate())
- tipText += "\n"+i18n("Start: ")+ (static_cast<Todo*>(mIncidence))->dtStartDateStr();
- tipText += "\n"+i18n("Due: ")+ (static_cast<Todo*>(mIncidence))->dtDueDateStr();
+ tipText += "\n"+i18n("Start: ")+ (static_cast<Todo*>(mIncidence))->dtStartDateStr();
+ if (((Todo*)mIncidence)->hasDueDate())
+ tipText += "\n"+i18n("Due: ")+ (static_cast<Todo*>(mIncidence))->dtDueDateStr();
}
if (!mIncidence->location().isEmpty()) {