-rw-r--r-- | libkcal/vcalformat.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libkcal/vcalformat.cpp b/libkcal/vcalformat.cpp index 309c699..a6ae1bc 100644 --- a/libkcal/vcalformat.cpp +++ b/libkcal/vcalformat.cpp @@ -61,11 +61,9 @@ void VCalFormat::setLocalTime ( bool b ) bool VCalFormat::load(Calendar *calendar, const QString &fileName) { mCalendar = calendar; clearException(); - - kdDebug(5800) << "VCalFormat::load() " << fileName << endl; - + useLocalTime = mCalendar->isLocalTime(); VObject *vcal = 0; // this is not necessarily only 1 vcal. Could be many vcals, or include // a vcard... @@ -91,13 +89,13 @@ bool VCalFormat::load(Calendar *calendar, const QString &fileName) bool VCalFormat::save(Calendar *calendar, const QString &fileName) { mCalendar = calendar; + useLocalTime = mCalendar->isLocalTime(); QString tmpStr; VObject *vcal, *vo; - kdDebug(5800) << "VCalFormat::save(): " << fileName << endl; vcal = newVObject(VCCalProp); // addPropValue(vcal,VCLocationProp, "0.0"); @@ -127,12 +125,10 @@ bool VCalFormat::save(Calendar *calendar, const QString &fileName) cleanVObjects(vcal); cleanStrTbl(); if (QFile::exists(fileName)) { - kdDebug(5800) << "No error" << endl; return true; } else { - kdDebug(5800) << "Error" << endl; return false; // error } } @@ -160,9 +156,9 @@ bool VCalFormat::fromString( Calendar *calendar, const QString &text ) if ( strcmp( vObjectName( curvo ), VCEventProp ) == 0 ) { Event *event = VEventToEvent( curvo ); calendar->addEvent( event ); } else { - kdDebug(5800) << "VCalFormat::fromString(): Unknown object type." << endl; + qDebug("VCalFormat::fromString(): Unknown object type. "); deleteVObject( vcal ); return false; } |