summaryrefslogtreecommitdiffabout
path: root/kde2file/caldump/main.cpp
Side-by-side diff
Diffstat (limited to 'kde2file/caldump/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kde2file/caldump/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/kde2file/caldump/main.cpp b/kde2file/caldump/main.cpp
index 95ae29e..76bfad3 100644
--- a/kde2file/caldump/main.cpp
+++ b/kde2file/caldump/main.cpp
@@ -126,8 +126,9 @@ int main( int argc, char *argv[] )
ResourceCalendar * re = calendarResource->resource( (*it) );
if ( re && !re->readOnly() ) {
++num;
Incidence* cl = (*it)->clone();
+ cl->setLastModified( (*it)->lastModified() );
if ( cl->type() == "Journal" )
localCalendar->addJournal( (Journal *) cl );
else if ( cl->type() == "Todo" )
localCalendar->addTodo( (Todo *) cl );
@@ -161,9 +162,11 @@ int main( int argc, char *argv[] )
ResourceCalendar * re = calendarResource->resource( (*it) );
if ( re && !re->readOnly() ) {
Incidence* cl = localCalendar->incidence( (*it)->uid() );
if ( cl ) {
+ QDateTime lm = cl->lastModified();
cl->setResources( (*it)->resources() );
+ cl->setLastModified(lm);
}
++del;
cl = (*it);
if ( cl->type() == "Journal" )
@@ -177,8 +180,9 @@ int main( int argc, char *argv[] )
for( it = newInc.begin(); it != newInc.end(); ++it ) {
Incidence* cl = (*it)->clone();
++num;
calendarResource->addIncidence( cl );
+ //cl->setLastModified( (*it)->lastModified() );
}
calendarResource->save();
qDebug("************************************* ");
qDebug("************************************* ");