-rw-r--r-- | libkcal/phoneformat.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libkcal/phoneformat.cpp b/libkcal/phoneformat.cpp index ef69bce..6d0da5c 100644 --- a/libkcal/phoneformat.cpp +++ b/libkcal/phoneformat.cpp @@ -277,4 +277,2 @@ ulong PhoneFormat::getCsum( const QStringList & attList) } - if ( i == 0 ) - qDebug("csum: i == 0 %d ", cSum); @@ -469,3 +467,2 @@ void PhoneFormat::afterSave( Incidence* inc) inc->removeID( mProfileName ); -#if 0 if ( inc->type() == "Event") @@ -475,3 +472,3 @@ void PhoneFormat::afterSave( Incidence* inc) inc->setCsum( mProfileName, QString::number( csum )); -#endif + inc->setTempSyncStat( SYNC_TEMPSTATE_NEW_ID ); @@ -516,2 +513,6 @@ bool PhoneFormat::save( Calendar *calendar) calendar->deleteTodo( to ); + } else { + if ( to->isCompleted()) { + calendar->deleteTodo( to ); + } } @@ -565,3 +566,3 @@ bool PhoneFormat::save( Calendar *calendar) QString cSum = QString::number( csum ); - ev->setCsum( mProfileName, cSum ); + //ev->setCsum( mProfileName, cSum ); //qDebug("Event cSum %s ", cSum.latin1()); @@ -601,3 +602,3 @@ bool PhoneFormat::save( Calendar *calendar) QString cSum = QString::number( csum ); - to->setCsum( mProfileName, cSum ); + //to->setCsum( mProfileName, cSum ); qDebug("Todo cSum %s ", cSum.latin1()); |