author | zautrix <zautrix> | 2004-10-13 00:09:20 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-13 00:09:20 (UTC) |
commit | d56ca1073ce493afdeb54e33425638f7147d4bca (patch) (unidiff) | |
tree | 03b21c9d7a875c7f7dd46d936d834570d211ae42 | |
parent | 0dab27179ee6b1e0a052ab589a27e31ffb887912 (diff) | |
download | kdepimpi-d56ca1073ce493afdeb54e33425638f7147d4bca.zip kdepimpi-d56ca1073ce493afdeb54e33425638f7147d4bca.tar.gz kdepimpi-d56ca1073ce493afdeb54e33425638f7147d4bca.tar.bz2 |
fix in save vcal as local time
-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 | |||
@@ -63,7 +63,5 @@ bool VCalFormat::load(Calendar *calendar, const QString &fileName) | |||
63 | mCalendar = calendar; | 63 | mCalendar = calendar; |
64 | clearException(); | 64 | clearException(); |
65 | 65 | useLocalTime = mCalendar->isLocalTime(); | |
66 | kdDebug(5800) << "VCalFormat::load() " << fileName << endl; | ||
67 | |||
68 | VObject *vcal = 0; | 66 | VObject *vcal = 0; |
69 | 67 | ||
@@ -93,9 +91,9 @@ bool VCalFormat::save(Calendar *calendar, const QString &fileName) | |||
93 | { | 91 | { |
94 | mCalendar = calendar; | 92 | mCalendar = calendar; |
93 | useLocalTime = mCalendar->isLocalTime(); | ||
95 | 94 | ||
96 | QString tmpStr; | 95 | QString tmpStr; |
97 | VObject *vcal, *vo; | 96 | VObject *vcal, *vo; |
98 | 97 | ||
99 | kdDebug(5800) << "VCalFormat::save(): " << fileName << endl; | ||
100 | 98 | ||
101 | vcal = newVObject(VCCalProp); | 99 | vcal = newVObject(VCCalProp); |
@@ -129,8 +127,6 @@ bool VCalFormat::save(Calendar *calendar, const QString &fileName) | |||
129 | 127 | ||
130 | if (QFile::exists(fileName)) { | 128 | if (QFile::exists(fileName)) { |
131 | kdDebug(5800) << "No error" << endl; | ||
132 | return true; | 129 | return true; |
133 | } else { | 130 | } else { |
134 | kdDebug(5800) << "Error" << endl; | ||
135 | return false; // error | 131 | return false; // error |
136 | } | 132 | } |
@@ -162,5 +158,5 @@ bool VCalFormat::fromString( Calendar *calendar, const QString &text ) | |||
162 | calendar->addEvent( event ); | 158 | calendar->addEvent( event ); |
163 | } else { | 159 | } else { |
164 | kdDebug(5800) << "VCalFormat::fromString(): Unknown object type." << endl; | 160 | qDebug("VCalFormat::fromString(): Unknown object type. "); |
165 | deleteVObject( vcal ); | 161 | deleteVObject( vcal ); |
166 | return false; | 162 | return false; |