From 3c5d7b484e6ab263ab4091f22815770ea8da6c9c Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 21 Mar 2005 17:39:46 +0000 Subject: fix --- (limited to 'korganizer/kowhatsnextview.cpp') diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp index 18dc656..66ff75d 100644 --- a/korganizer/kowhatsnextview.cpp +++ b/korganizer/kowhatsnextview.cpp @@ -478,7 +478,7 @@ bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool a return false; } bool bDay = false; - if ( ev->categories().contains( i18n("Birthday") ) || ev->categories().contains( i18n("Anniversary") ) ) + if ( ev->isBirthday() || ev->isAnniversary() ) bDay = true; tempText += ""; if (ev->type()=="Event") { @@ -536,10 +536,10 @@ bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool a } else { if ( bDay ) { - if ( ev->categories().contains( i18n("Birthday") )) - tempText += "" + i18n("Birthday") +":"; + if ( ev->isBirthday()) + tempText += "" + i18n("Birthday") +":"; else - tempText += "" + i18n("Anniversary")+":"; + tempText += "" + i18n("Anniversary")+":"; } else { tempText += i18n("Allday:"); } -- cgit v0.9.0.2