From d56ca1073ce493afdeb54e33425638f7147d4bca Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 13 Oct 2004 00:09:20 +0000 Subject: fix in save vcal as local time --- (limited to 'libkcal/vcalformat.cpp') diff --git a/libkcal/vcalformat.cpp b/libkcal/vcalformat.cpp index 309c699..a6ae1bc 100644 --- a/libkcal/vcalformat.cpp +++ b/libkcal/vcalformat.cpp @@ -62,9 +62,7 @@ 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 @@ -92,11 +90,11 @@ 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); @@ -128,10 +126,8 @@ bool VCalFormat::save(Calendar *calendar, const QString &fileName) cleanStrTbl(); if (QFile::exists(fileName)) { - kdDebug(5800) << "No error" << endl; return true; } else { - kdDebug(5800) << "Error" << endl; return false; // error } } @@ -161,7 +157,7 @@ bool VCalFormat::fromString( Calendar *calendar, const QString &text ) 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; } -- cgit v0.9.0.2