Changeset View
Changeset View
Standalone View
Standalone View
korganizer/calendarview.cpp
Show First 20 Lines • Show All 1,629 Lines • ▼ Show 20 Lines | if ( thisAndFuture ) { | ||||
startMultiModify( i18n( "Dissociate occurrence" ) ); | startMultiModify( i18n( "Dissociate occurrence" ) ); | ||||
} | } | ||||
KDateTime occurrenceDate( incidence->dtStart() ); | KDateTime occurrenceDate( incidence->dtStart() ); | ||||
occurrenceDate.setDate(date); | occurrenceDate.setDate(date); | ||||
kDebug() << "create exception: " << occurrenceDate; | kDebug() << "create exception: " << occurrenceDate; | ||||
KCalCore::Incidence::Ptr newInc( KCalCore::Calendar::createException( | KCalCore::Incidence::Ptr newInc( KCalCore::Calendar::createException( | ||||
incidence, occurrenceDate, thisAndFuture) ); | incidence, occurrenceDate, thisAndFuture) ); | ||||
if ( newInc ) { | if ( newInc ) { | ||||
mChanger->createIncidence( newInc, item.parentCollection(), this ); | mChanger->createIncidence( newInc, Akonadi::Collection(item.storageCollectionId()), this ); | ||||
} else { | } else { | ||||
if ( thisAndFuture ) { | if ( thisAndFuture ) { | ||||
KMessageBox::sorry( | KMessageBox::sorry( | ||||
this, | this, | ||||
i18n( "Dissociating the future occurrences failed." ), | i18n( "Dissociating the future occurrences failed." ), | ||||
i18n( "Dissociating Failed" ) ); | i18n( "Dissociating Failed" ) ); | ||||
} else { | } else { | ||||
KMessageBox::sorry( | KMessageBox::sorry( | ||||
▲ Show 20 Lines • Show All 1,193 Lines • Show Last 20 Lines |