~ubuntu-branches/ubuntu/trusty/kdepimlibs/trusty

« back to all changes in this revision

Viewing changes to kcalcore/incidencebase.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-09-30 14:20:53 UTC
  • mfrom: (1.1.101)
  • Revision ID: package-import@ubuntu.com-20130930142053-k66oi27s75lt8l51
Tags: 4:4.11.2-0ubuntu1
New upstream bugfix release

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
IncidenceBase &IncidenceBase::assign( const IncidenceBase &other )
150
150
{
151
151
  CustomProperties::operator=( other );
 
152
 
 
153
  const bool uidChanged = other.uid() != uid();
 
154
 
152
155
  d->init( *other.d );
153
156
  mReadOnly = other.mReadOnly;
154
157
  d->mDirtyFields.clear();
155
 
  d->mDirtyFields.insert( FieldUnknown );
 
158
  d->mDirtyFields.insert( FieldUnknown ); // Means stuff might have changed.
 
159
 
 
160
  // Observers using the observer interface have no way of finding out if there
 
161
  // was a uid change so, exceptionally, lets set this field dirty.
 
162
  if ( uidChanged )
 
163
    d->mDirtyFields.insert( FieldUid );
 
164
 
156
165
  return *this;
157
166
}
158
167