-rw-r--r-- | kde2file/caldump/main.cpp | 4 |
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 | |||
@@ -127,6 +127,7 @@ int main( int argc, char *argv[] ) | |||
127 | if ( re && !re->readOnly() ) { | 127 | if ( re && !re->readOnly() ) { |
128 | ++num; | 128 | ++num; |
129 | Incidence* cl = (*it)->clone(); | 129 | Incidence* cl = (*it)->clone(); |
130 | cl->setLastModified( (*it)->lastModified() ); | ||
130 | if ( cl->type() == "Journal" ) | 131 | if ( cl->type() == "Journal" ) |
131 | localCalendar->addJournal( (Journal *) cl ); | 132 | localCalendar->addJournal( (Journal *) cl ); |
132 | else if ( cl->type() == "Todo" ) | 133 | else if ( cl->type() == "Todo" ) |
@@ -162,7 +163,9 @@ int main( int argc, char *argv[] ) | |||
162 | if ( re && !re->readOnly() ) { | 163 | if ( re && !re->readOnly() ) { |
163 | Incidence* cl = localCalendar->incidence( (*it)->uid() ); | 164 | Incidence* cl = localCalendar->incidence( (*it)->uid() ); |
164 | if ( cl ) { | 165 | if ( cl ) { |
166 | QDateTime lm = cl->lastModified(); | ||
165 | cl->setResources( (*it)->resources() ); | 167 | cl->setResources( (*it)->resources() ); |
168 | cl->setLastModified(lm); | ||
166 | } | 169 | } |
167 | ++del; | 170 | ++del; |
168 | cl = (*it); | 171 | cl = (*it); |
@@ -178,6 +181,7 @@ int main( int argc, char *argv[] ) | |||
178 | Incidence* cl = (*it)->clone(); | 181 | Incidence* cl = (*it)->clone(); |
179 | ++num; | 182 | ++num; |
180 | calendarResource->addIncidence( cl ); | 183 | calendarResource->addIncidence( cl ); |
184 | //cl->setLastModified( (*it)->lastModified() ); | ||
181 | } | 185 | } |
182 | calendarResource->save(); | 186 | calendarResource->save(); |
183 | qDebug("************************************* "); | 187 | qDebug("************************************* "); |