author | zautrix <zautrix> | 2005-07-28 17:20:12 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-28 17:20:12 (UTC) |
commit | 21e3b4936180fe45ba9545cb3fe28b574f86f1b5 (patch) (unidiff) | |
tree | 59667b0b2738776f69206209c4653dc2e4487d3f /libkcal | |
parent | 1f1a6829b042c804e5b547b181dc50c4539d5551 (diff) | |
download | kdepimpi-21e3b4936180fe45ba9545cb3fe28b574f86f1b5.zip kdepimpi-21e3b4936180fe45ba9545cb3fe28b574f86f1b5.tar.gz kdepimpi-21e3b4936180fe45ba9545cb3fe28b574f86f1b5.tar.bz2 |
rec fix
-rw-r--r-- | libkcal/incidence.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libkcal/incidence.cpp b/libkcal/incidence.cpp index 201f593..52d94fb 100644 --- a/libkcal/incidence.cpp +++ b/libkcal/incidence.cpp | |||
@@ -731,49 +731,50 @@ void Incidence::removeAlarm(Alarm *alarm) | |||
731 | mAlarms.removeRef(alarm); | 731 | mAlarms.removeRef(alarm); |
732 | updated(); | 732 | updated(); |
733 | } | 733 | } |
734 | 734 | ||
735 | void Incidence::clearAlarms() | 735 | void Incidence::clearAlarms() |
736 | { | 736 | { |
737 | mAlarms.clear(); | 737 | mAlarms.clear(); |
738 | updated(); | 738 | updated(); |
739 | } | 739 | } |
740 | 740 | ||
741 | bool Incidence::isAlarmEnabled() const | 741 | bool Incidence::isAlarmEnabled() const |
742 | { | 742 | { |
743 | Alarm* alarm; | 743 | Alarm* alarm; |
744 | for (QPtrListIterator<Alarm> it(mAlarms); (alarm = it.current()) != 0; ++it) { | 744 | for (QPtrListIterator<Alarm> it(mAlarms); (alarm = it.current()) != 0; ++it) { |
745 | if (alarm->enabled()) | 745 | if (alarm->enabled()) |
746 | return true; | 746 | return true; |
747 | } | 747 | } |
748 | return false; | 748 | return false; |
749 | } | 749 | } |
750 | #include <stdlib.h> | 750 | #include <stdlib.h> |
751 | Recurrence *Incidence::recurrence() | 751 | Recurrence *Incidence::recurrence() |
752 | { | 752 | { |
753 | if ( ! mRecurrence ) { | 753 | if ( ! mRecurrence ) { |
754 | mRecurrence = new Recurrence(this); | 754 | mRecurrence = new Recurrence(this); |
755 | qDebug("creating new recurence "); | 755 | mRecurrence->setRecurStart( dtStart() ); |
756 | //qDebug("creating new recurence "); | ||
756 | //abort(); | 757 | //abort(); |
757 | } | 758 | } |
758 | return mRecurrence; | 759 | return mRecurrence; |
759 | } | 760 | } |
760 | void Incidence::setRecurrence( Recurrence * r) | 761 | void Incidence::setRecurrence( Recurrence * r) |
761 | { | 762 | { |
762 | if ( mRecurrence ) | 763 | if ( mRecurrence ) |
763 | delete mRecurrence; | 764 | delete mRecurrence; |
764 | mRecurrence = r; | 765 | mRecurrence = r; |
765 | } | 766 | } |
766 | 767 | ||
767 | void Incidence::setLocation(const QString &location) | 768 | void Incidence::setLocation(const QString &location) |
768 | { | 769 | { |
769 | if (mReadOnly) return; | 770 | if (mReadOnly) return; |
770 | mLocation = location; | 771 | mLocation = location; |
771 | updated(); | 772 | updated(); |
772 | } | 773 | } |
773 | 774 | ||
774 | QString Incidence::location() const | 775 | QString Incidence::location() const |
775 | { | 776 | { |
776 | return mLocation; | 777 | return mLocation; |
777 | } | 778 | } |
778 | QString Incidence::recurrenceText() const | 779 | QString Incidence::recurrenceText() const |
779 | { | 780 | { |