summaryrefslogtreecommitdiffabout
path: root/libkcal/incidencebase.cpp
Side-by-side diff
Diffstat (limited to 'libkcal/incidencebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/incidencebase.cpp8
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
@@ -36,2 +36,3 @@ IncidenceBase::IncidenceBase() :
{
+ blockLastModified = false;
setUid(CalFormat::createUniqueId());
@@ -55,2 +56,3 @@ IncidenceBase::IncidenceBase(const IncidenceBase &i) :
+ blockLastModified = false;
mReadOnly = i.mReadOnly;
@@ -151,4 +153,7 @@ void IncidenceBase::setCalID( int id )
{
- if ( mCalID > 0 )
+ if ( mCalID > 0 ) {
+ blockLastModified = true;
updated();
+ blockLastModified = false;
+ }
mCalID = id;
@@ -191,2 +196,3 @@ void IncidenceBase::setLastModified(const QDateTime &lm)
{
+ if ( blockLastModified ) return;
// DON'T! updated() because we call this from