From kde-commits Wed Aug 31 21:55:59 2005 From: Reinhold Kainhofer Date: Wed, 31 Aug 2005 21:55:59 +0000 To: kde-commits Subject: branches/KDE/3.5/kdepim/libkcal Message-Id: <1125525359.680616.17163.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=112552541623140 SVN commit 455578 by kainhofe: When dissociating a single item of a recurring sequence, that dissociated item doesn't need any recurrence information, so completely remove also exdates etc. M +2 -2 calendar.cpp --- branches/KDE/3.5/kdepim/libkcal/calendar.cpp #455577:455578 @@ -312,7 +312,7 @@ newInc->setRelatedTo( incidence ); Recurrence *recur = newInc->recurrence(); if ( single ) { - recur->unsetRecurs(); + recur->clear(); } else { // Adjust the recurrence for the future incidences. In particular // adjust the "end after n occurrences" rules! "No end date" and "end by ..." @@ -323,7 +323,7 @@ if ( doneduration >= duration ) { kdDebug(5850) << "The dissociated event already occurred more often " << "than it was supposed to ever occur. ERROR!" << endl; - recur->unsetRecurs(); + recur->clear(); } else { recur->setDuration( duration - doneduration ); }