summaryrefslogtreecommitdiffabout
path: root/korganizer
Side-by-side diff
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 7292dcd..7ac5b11 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -1242,7 +1242,7 @@ bool CalendarView::addAnniversary( QDate date, QString name, KCal::Attendee* a
Recurrence * rec = ev->recurrence();
rec->setYearly(Recurrence::rYearlyMonth,1,-1);
rec->addYearlyNum( date.month() );
- if ( !mCalendar->addEventNoDup( ev ) ) {
+ if ( !mCalendar->addAnniversaryNoDup( ev ) ) {
delete ev;
return false;
}
@@ -2038,7 +2038,7 @@ void CalendarView::removeCategories()
int count = 0;
while ( inc ) {
newCatList.clear();
- catIncList = QStringList::split (",", inc->categoriesStr() );
+ catIncList = inc->categories() ;
for( i = 0; i< catIncList.count(); ++i ) {
if ( catList.contains (catIncList[i]))
newCatList.append( catIncList[i] );
@@ -2058,7 +2058,7 @@ int CalendarView::addCategories()
int i;
int count = 0;
while ( inc ) {
- catIncList = QStringList::split (",", inc->categoriesStr() );
+ catIncList = inc->categories() ;
for( i = 0; i< catIncList.count(); ++i ) {
if ( !catList.contains (catIncList[i])) {
catList.append( catIncList[i] );