-rw-r--r-- | libkcal/incidencebase.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index dcead02..1a19f3e 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp @@ -35,4 +35,5 @@ IncidenceBase::IncidenceBase() : mPilotId(0), mSyncStatus(SYNCMOD) { + blockLastModified = false; setUid(CalFormat::createUniqueId()); mOrganizer = ""; @@ -54,4 +55,5 @@ IncidenceBase::IncidenceBase(const IncidenceBase &i) : { + blockLastModified = false; mReadOnly = i.mReadOnly; mDtStart = i.mDtStart; @@ -150,6 +152,9 @@ void IncidenceBase::setTagged( bool b) void IncidenceBase::setCalID( int id ) { - if ( mCalID > 0 ) + if ( mCalID > 0 ) { + blockLastModified = true; updated(); + blockLastModified = false; + } mCalID = id; } @@ -190,4 +195,5 @@ QString IncidenceBase::uid() const void IncidenceBase::setLastModified(const QDateTime &lm) { + if ( blockLastModified ) return; // DON'T! updated() because we call this from // Calendar::updateEvent(). |