-rw-r--r-- | kde2file/caldump/main.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kde2file/caldump/main.cpp b/kde2file/caldump/main.cpp index 8d81307..03571b9 100644 --- a/kde2file/caldump/main.cpp +++ b/kde2file/caldump/main.cpp @@ -119,5 +119,5 @@ int main( int argc, char *argv[] ) qDebug("**************kdecaldump************* "); qDebug("************************************* "); - qDebug("Using timezone id: %s", calendarResource->timeZoneId().latin1()); + qDebug("Using timezone ID: %s", calendarResource->timeZoneId().latin1()); if ( !read ) { @@ -153,4 +153,5 @@ int main( int argc, char *argv[] ) } else { + qDebug("*************************load"); localCalendar = new CalendarLocal(); localCalendar->setTimeZoneId( calendarResource->timeZoneId()); @@ -161,4 +162,5 @@ int main( int argc, char *argv[] ) int add = 0; if ( storage->load() ) { + qDebug("*************************loaded!"); KCal::Incidence::List newInc = localCalendar->rawIncidences(); Incidence::List::ConstIterator it; @@ -199,4 +201,5 @@ int main( int argc, char *argv[] ) ++add; } + } KCal::Incidence::List allInc = calendarResource->rawIncidences(); @@ -220,5 +223,5 @@ int main( int argc, char *argv[] ) } } - } + calendarResource->save(); qDebug("************************************* "); @@ -228,5 +231,5 @@ int main( int argc, char *argv[] ) } else - qDebug("error loading file /tmp/kdedumpall.ics"); + qDebug("ERROR loading file %s",fileName.latin1() ); } |