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
@@ -1241,9 +1241,9 @@ bool CalendarView::addAnniversary( QDate date, QString name, KCal::Attendee* a
ev->setFloats( true );
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;
}
return true;
@@ -2037,9 +2037,9 @@ void CalendarView::removeCategories()
int i;
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] );
}
@@ -2057,9 +2057,9 @@ int CalendarView::addCategories()
Incidence* inc = incList.first();
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] );
//qDebug("add cat %s ", catIncList[i].latin1());