summaryrefslogtreecommitdiffabout
path: root/libkcal/incidence.cpp
Unidiff
Diffstat (limited to 'libkcal/incidence.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/incidence.cpp3
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
@@ -743,25 +743,26 @@ bool Incidence::isAlarmEnabled() const
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>
751Recurrence *Incidence::recurrence() 751Recurrence *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}
760void Incidence::setRecurrence( Recurrence * r) 761void 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
767void Incidence::setLocation(const QString &location) 768void Incidence::setLocation(const QString &location)