author | zautrix <zautrix> | 2004-08-09 11:07:44 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-09 11:07:44 (UTC) |
commit | 2d3e20244a156485f6001aa82c4494dfce177b8f (patch) (unidiff) | |
tree | c5cc2cc6eaa79b6d6dd1c7dd27f29d3871d6a528 /libkcal/sharpformat.cpp | |
parent | b51c65d86224ee7d77e672fcfba5ea92d55eed0e (diff) | |
download | kdepimpi-2d3e20244a156485f6001aa82c4494dfce177b8f.zip kdepimpi-2d3e20244a156485f6001aa82c4494dfce177b8f.tar.gz kdepimpi-2d3e20244a156485f6001aa82c4494dfce177b8f.tar.bz2 |
minor fixes
-rw-r--r-- | libkcal/sharpformat.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libkcal/sharpformat.cpp b/libkcal/sharpformat.cpp index 4e54fdf..f8b066d 100644 --- a/libkcal/sharpformat.cpp +++ b/libkcal/sharpformat.cpp | |||
@@ -165,6 +165,8 @@ class SharpParser : public QObject | |||
165 | r->setYearly( Recurrence::rYearlyMonth, freq, -1 ); | 165 | r->setYearly( Recurrence::rYearlyMonth, freq, -1 ); |
166 | r->addYearlyNum( startDate.month() ); | 166 | r->addYearlyNum( startDate.month() ); |
167 | } | 167 | } |
168 | } else { | ||
169 | event->recurrence()->unsetRecurs(); | ||
168 | } | 170 | } |
169 | 171 | ||
170 | QString categoryList = attList[1] ; | 172 | QString categoryList = attList[1] ; |
@@ -183,6 +185,12 @@ class SharpParser : public QObject | |||
183 | alarm->setEnabled( true ); | 185 | alarm->setEnabled( true ); |
184 | int alarmOffset = attList[9].toInt(); | 186 | int alarmOffset = attList[9].toInt(); |
185 | alarm->setStartOffset( alarmOffset * -60 ); | 187 | alarm->setStartOffset( alarmOffset * -60 ); |
188 | } else { | ||
189 | Alarm *alarm; | ||
190 | if ( event->alarms().count() > 0 ) { | ||
191 | alarm = event->alarms().first(); | ||
192 | alarm->setEnabled( false ); | ||
193 | } | ||
186 | } | 194 | } |
187 | 195 | ||
188 | mCalendar->addEvent( event); | 196 | mCalendar->addEvent( event); |