summaryrefslogtreecommitdiffabout
path: root/libkcal
Side-by-side diff
Diffstat (limited to 'libkcal') (more/less context) (show whitespace changes)
-rw-r--r--libkcal/phoneformat.cpp13
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
@@ -276,6 +276,4 @@ ulong PhoneFormat::getCsum( const QStringList & attList)
}
}
- if ( i == 0 )
- qDebug("csum: i == 0 %d ", cSum);
}
@@ -468,5 +466,4 @@ void PhoneFormat::afterSave( Incidence* inc)
uint csum;
inc->removeID( mProfileName );
-#if 0
if ( inc->type() == "Event")
csum = PhoneFormat::getCsumEvent( (Event*) inc );
@@ -474,5 +471,5 @@ void PhoneFormat::afterSave( Incidence* inc)
csum = PhoneFormat::getCsumTodo( (Todo*) inc );
inc->setCsum( mProfileName, QString::number( csum ));
-#endif
+
inc->setTempSyncStat( SYNC_TEMPSTATE_NEW_ID );
@@ -515,4 +512,8 @@ bool PhoneFormat::save( Calendar *calendar)
if ( to->tempSyncStat() == SYNC_TEMPSTATE_DELETE ) {
calendar->deleteTodo( to );
+ } else {
+ if ( to->isCompleted()) {
+ calendar->deleteTodo( to );
+ }
}
to = tl.next();
@@ -564,5 +565,5 @@ bool PhoneFormat::save( Calendar *calendar)
csum = PhoneFormat::getCsumEvent( ev );
QString cSum = QString::number( csum );
- ev->setCsum( mProfileName, cSum );
+ //ev->setCsum( mProfileName, cSum );
//qDebug("Event cSum %s ", cSum.latin1());
ev1 = er1.first();
@@ -600,5 +601,5 @@ bool PhoneFormat::save( Calendar *calendar)
csum = PhoneFormat::getCsumTodo( to );
QString cSum = QString::number( csum );
- to->setCsum( mProfileName, cSum );
+ //to->setCsum( mProfileName, cSum );
qDebug("Todo cSum %s ", cSum.latin1());
Todo* to1 = tl1.first();